Hi, I have one of the 821 LCD displays and it's working great! I'm using I2C to connect it to an Atmel AVR 2313 MCU. I've built a handheld serial terminal.
My only problem is using the Go To Position command. I can't seem to get this to work... I can clear the screen, turn of the cursor, go to upper left, etc. But I just can't get it to accept the go to command.
I'm using Bascom to program the MCU. Here is the code that I'm using:
Sub Line1 'Move cursor to start of line 1
'Device is at address &H5C
I2csend &H5C , 254 'Control Code
I2csend &H5C , 71 'Go To command
I2csend &H5C , 1 'Column 1
I2csend &H5C , 1 'Row 1
Waitms 25
End Sub
Sub Line2 'Move cursor to start of line 2
I2csend &H5C , 254
I2csend &H5C , 71
I2csend &H5C , 1
I2csend &H5C , 2 'Row 2
Waitms 25
End Sub
Go To Position command on an 821
-
- LCD?
- Posts: 2
- Joined: Fri May 10, 2002 6:00 pm
- Location: Chicago, IL USA
- Contact:
-
- LCD?
- Posts: 2
- Joined: Fri May 10, 2002 6:00 pm
- Location: Chicago, IL USA
- Contact: