Best Answer hanzibal, 16 May 2013 - 12:20 AM
Sorry about the delay, couldn't find the code so I had to write it all over again
Anyway, attached is some code you can try. It's a small Hd44780 demo app using bit banging to drive the LCD. I wrote the app for the Mini but you should only need to change the pin assignments and using directives according to your board. It works perfectly on the Mini and hopefully it will on your board too.
Here's a couple of pictures showing what it should look like when running:
[attachment=2804:LCD-1.JPG]
[attachment=2803:LCD-2.JPG]
In the pictures the wiring may look funny because I use PWM to control brightness and contrast. That way I don't need any potentiometers and there's a few lines for this that you can uncomment if you want to use PWM. Should you decide to do so, first measure the currents to make sure you can drive the LCD straight off the PWM outputs. In my case the current is only some 4mA so it's fine.
Good luck!
[attachment=2805:Hd44780Test.zip]
Go to the full post