you can also gain a lot of speed by changing the two instances of
delay2(5);
in LcdCommandWrite() and LcdDataWrite() with something like
delayMicroseconds2(43);
because if you display 16x2 so 32 characters on the screen, you are losing about 160ms every refresh, for nothing, as displaying 32 characters needs less than 1.5ms.
__________________
2013 Hyundai Sonata Hybrid
|