Go Down

Topic: EA-DIP204 4NLW Initialising (Read 1 time) previous topic - next topic


Jul 25, 2011, 07:34 pm Last Edit: Jul 25, 2011, 09:13 pm by Juergen_S Reason: 1

i have a new init-sequence for this EA-DIP204-4NLW display.

Here is the code:
Code: [Select]
LiquidCrystal lcd(9, 8, 7, 6, 5, 4);

void setup() {

 // set up the LCD's number of columns and rows:
 lcd.begin(20, 4);
   lcd.command(0x01);//clear display lcd.command (0x01) / / clear display
   lcd.command(0x24);//function set RE=1 lcd.command (0x24) / / function set RE = 1
   lcd.command(0x09);//extendet function set, 4 lines, 5-dot fontwith
   lcd.command(0x20);//function set RE=0 lcd.command (0x20) / / function set RE = 0
   lcd.command(0x0C);//control, display on, cursor off, blinken off
   lcd.command(0x01);//clear display lcd.command (0x01) / / clear display
   lcd.command(0x06);//entry mode segment bidirectional


you must also modify the cpp.file inside the LyquidCrystal Libray:

change int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
    to   int row_offsets[] = { 0x00, 0x20, 0x40, 0x60 };

Thats all.


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131