Pages: [1]   Go Down
Author Topic: EA-DIP204 4NLW Initialising  (Read 844 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

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

Here is the code:
Code:
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
    delay(02);
    lcd.command(0x24);//function set RE=1 lcd.command (0x24) / / function set RE = 1
    delay(50);
    lcd.command(0x09);//extendet function set, 4 lines, 5-dot fontwith
    delay(50);
    lcd.command(0x20);//function set RE=0 lcd.command (0x20) / / function set RE = 0
    delay(50);
    lcd.command(0x0C);//control, display on, cursor off, blinken off
    delay(50);
    lcd.command(0x01);//clear display lcd.command (0x01) / / clear display
    delay(20);
    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.

Jürgen
« Last Edit: July 25, 2011, 02:13:59 pm by Juergen_S » Logged

Pages: [1]   Go Up
Jump to: