Truly 4x20 LCD --> HD44780 compliant?

Hi,

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

My first question this year:
I got some Truly 4x20 LCD Displays (http://www.mpja.com/download/14194op.pdf). Can somebody tell me if they are HD44780 compliant and if I can use the code from Arduino's Playground (Arduino Playground - LCD).

KR
Greg

According to this site hd44780_compatible [MIDIbox]
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 :slight_smile:

Thanks for the information! :slight_smile:

Greg

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
}