I am playing with 2 line displays and an 18X with great success, not my design sadly. The initation code is
rs = LCDInstruct
for Counter = 0 to 5
lookup Counter,($33,$32,$28,$0F,$01,$06),OutputByte
' #33 8 bit 1 line 5 x 7 dots
' $32 ???????????
' $28 4 bits 2 lines 5 x 7 dots
' $0F Display On, Cursor On, Blink On
' $01 Display Clear
' $06 Cursor Move right, no shift in display
gosub WriteToLCD 'actually send the byte
next Counter
For the life of me I cannot understand why I need $33, $32 in front of $28 in the Set Function command. If I remove either or both (and change Counter) i get garbage on the LCD. The same thing happens with 2 line 8 char and 2 line 16 char
Any ideas?
rs = LCDInstruct
for Counter = 0 to 5
lookup Counter,($33,$32,$28,$0F,$01,$06),OutputByte
' #33 8 bit 1 line 5 x 7 dots
' $32 ???????????
' $28 4 bits 2 lines 5 x 7 dots
' $0F Display On, Cursor On, Blink On
' $01 Display Clear
' $06 Cursor Move right, no shift in display
gosub WriteToLCD 'actually send the byte
next Counter
For the life of me I cannot understand why I need $33, $32 in front of $28 in the Set Function command. If I remove either or both (and change Counter) i get garbage on the LCD. The same thing happens with 2 line 8 char and 2 line 16 char
Any ideas?