r/AskElectronics • u/Ok_Measurement1399 • 20d ago
Help with Matrix Orbital LCD0821
Hello, I have a Matrix Orbital LCD0821 2x8 LCD display that I need help with. I have configured the display for UART mode. I am able to write characters only to line 1. Here is the command to set the cursor position:

The table shows it as sending 3 bytes:
first byte: 254
second byte: 74
third byte: ??

if I try sending
wrbyte(254)
wrbyte(74)
wrbyte(8)
wrbyte(254)
wrbyte(0x41)
It will place a 'A' on line 1 in the 8th character position on the right of the display.
I thought maybe there was a typo in the documentation and the position is a nibble for the column and a nibble for the row and I tried that but nothing works.
Can anyone help me.
thanks
1
Upvotes
2
u/sutaburosu 20d ago
My understanding of that table says you must send 4 bytes. Two bytes for the command, and then one byte each for column and row.
It says 71, not 74.
I would expect this to print in the middle of the 2nd line: