-
I've just uploaded a modified version of the LCD library, for 4-bit communication:
Arduino Playground - HomePage -
New wiki page on LCD interfacing: Arduino Playground - LCD
About the library:
I've only tested it on one LCD display - I don't have any other LCDs to hand.
It'd be great if someone could test it. Feel free to better the code.
It should be compatible with code written for the original library, except the constructor needs a single integer parameter (specifying whether the LCD display is 1 or 2 line). You're going to have to change the constructor and import statement anyway
I've also tied the RW pin low (write) on my board to save another pin, though have left code in the library to control the RW pin if you enable it.
I followed my LCD-specific datasheet as far as possible, which turned out to be a really bad idea. The section on initialization gave flaky results. So I took the apparently HD44780-standard three initial pulses from Massimo's init section: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1144924220/8
As for the wiki page:
I've linked to the various LCD resources I've found on the forum, and to my own library. Make it better!
neill