Truly 4x20 LCD --> HD44780 compliant?


first a happy new year to the community :) All the best and good luck for 2008!

My first question this year: I got some Truly 4x20 LCD Displays ( Can somebody tell me if they are HD44780 compliant and if I can use the code from Arduino's Playground (

KR Greg

According to this site the controller chips referenced in the datasheet you linked are compatible, so the LCD code should work. You will need the 4 line version if you want to write to lines 3 & 4 .

oh,and a very happy new year to you :)

Thanks for the information! :slight_smile:


Hi guys, my first post on the forum and I would like to say hello!!

I have just purchased a Sparkfun 4x20 serial LCD and it is using a HD44780. I used the following code to use all 4 lines. Your command flag may be a little different but the principle is the same, just replace the 0xFE with your specific address.

void selectLineOne(){ //puts the cursor at line 1 char 0. Serial.print(0xFE, BYTE); //command flag Serial.print(128, BYTE); //position 0 at line 1 } void selectLineTwo(){ //puts the cursor at line 2 char 0. Serial.print(0xFE, BYTE); //command flag Serial.print(192, BYTE); //position 0 at line 2 } void selectLineThree(){ //puts the cursor at line 3 char 0 Serial.print(0xFE, BYTE); //command flag Serial.print(148, BYTE); //position 0 at line 3 } void selectLineFour(){ //puts the cursor at line 4 char 0 Serial.print(0xFE, BYTE); //command flag Serial.print(212, BYTE); //position 0 at line 4 }