ATTiny2313 controlling a HD44780 LCD via AVR-GCC

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.

Join the Conversation

1 Comment

  1. 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.

Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.