LCD 4Bit

Here is an example of a 4bit LCD driver.

First of all I would like to thank Marin Purgar for giving me permission to publish his code on Wike. He wrote 'Yes of course it's ok, I wrote it for everyone to use it!'

You'll never get rich this way Marin, but that's all about beeing a geek, I guess :-)

Anyway ... the code :

If the chosen pins don't fit your application, feel free to alter them. Just keep in mind that the 4 datapins must be in consecutive order. For those who are familiar with the PIC itself : You don't have to bother about things like 'PORT A' or 'PORT B' boundaries. Pinguino will keep track of this for you.

Datapins 0..3 of the LCD can be left open.