We came across Scott Harden’s brief article describing how to control an HD44780 LCD using an Attiny2313. After a number of unsuccessful attempts with other code he found this LCD library written by Martin Thomas for use with AVR-GCC. With a few mods to the code Scott produced the above results controlling his 2×20 LCD in 4-bit mode. The code provides for scrolling and wrapping and can even display Japanese characters. A handy tip for ATTiny2313 users.
Leave a comment

Can anybody correctly compile this code? I’ve tried and tried and I get way too many errors. I’d like to get the hex file for an ATtiny2313 so I can play around with this.