Dogm162L-A + Arduino

Gast #2394027
Lesenswert?

Hi

Ich habe ein EA Dogm 162L-A Display bekommen und will es nun über SPI im 
5V Betrieb mit den Arduino Uno ansteuern. Habe auch schon einige Threads 
hier gelesen aber ich habe ein neues Problem. Die Initialisierung 
funktioniert bei mir nur jedes zweite Mal. Wenn es nicht funktioniert 
schreibt er mit den Text zweizeilig aus und schreibt nur die letzten 
Buchstaben hin. Daher wollte ich mal Fragen ob jemand das Problem schon 
mal hatte?!
1
  PORT_DIRECTION |= (1 << RS); // RS output
2
  rsSet(INSTRUCTION);
3
  // wait 60ms to get stable VDD
4
  _delay_ms(60);
5
  // 8 bit data, 2 line data, instruction table 1
6
  writeCommand(0x39);
7
  _delay_us(20);
8

9
  // 1/4 Bias, 2 line LCD
10
   writeCommand(0x1C);
11
  _delay_us(20);
12
  
13
  // Booster off, contrast C5, set C4
14
  writeCommand(0x52);
15
  _delay_us(20);
16

17
  // Set voltage follower and gain
18
  writeCommand(0x69);
19
  _delay_ms(200);
20
  
21
  // Set Contrast C3, C2, C1
22
  writeCommand(0x74);;
23
  _delay_us(20);
24
  
25
  // Switch back to instruction table 0
26
  writeCommand(0x38);
27
  _delay_us(20);
28
  
29
  // Display on, cursor on, cursor blink
30
  writeCommand(0x0f);
31
  _delay_us(20);
32
  
33
  // Clear the display
34
  writeCommand(0x01);
35
  _delay_ms(1);
36

37
  // Set cursor auto increment
38
  writeCommand(0x06);
39
  _delay_us(20);

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren