Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
The delay per character in obduino was 5 milliseconds. that is 50 times longer
than the delay per character in Arduino 17 and 18 ! I do have one LCD that
needs about 350 usec there, but even that is 12 fold faster than obduino used.
I implemented busy flag testing conditionally. it does lengthen the code, but I
think it is worthwhile. in most cases it will speed things up but if someone
happens to have an LCD that is even slower than the two I bought at Axman it
may work with the busy flag test.
The delay in lcd_commandWrite was shortened to 2 milliseconds. lcd_cls() does
take about 2 msec. All the other commands can complete in the 100 or 350 usec
timeframe, depending on whether we count the Axman LCDs. the 5 msec delay in
obduino is clearly overkill.
In the LCD tab, I changed all of the pinMode, digitalWrite and digitalRead
instances to equivalents from the digitalWriteFast library. Paul Stoffregen's
magic saved an amazing amount of flash memory with that maneuver; exactly how
much will depend on whether the pins involved are PWM pins and whether their
registers are above or below 0x0100 in memory. The maximal savings comes when
the address is below 0x0100 and it is a non-PWM pin. In that case, instead of a
multi-byte subroutine call, a single byte instruction is compiled.
Original comment by johnrain...@gmail.com
on 29 Aug 2010 at 8:47
Attachments:
since the update to the LiquidCrystal lib the screen works properly now.
Original comment by pat.vdl...@gmail.com
on 5 Oct 2010 at 4:46
As Per Pat.vdleer's comment, this issue has been resolved when using newest
version of Arduino.
Original comment by matthews.mike@gmail.com
on 4 Nov 2010 at 7:29
Original issue reported on code.google.com by
pat.vdl...@gmail.com
on 13 Feb 2010 at 9:43Attachments: