4D uLCD connectivity issue
Phillysteak527
Posts: 5
Hello everyone. I'm extremely new to Spin programming and i've run into a roadblock. I'm having difficulty in sending commands to a 4D LCD using the "Full Duplex Serial" object. I've tried to use the uOLED object from OBEX, but I believe it isn't the object that is causing the issues it's the way i'm trying to send commands. For instance if I am attempting to send the command "Print" via a serial link how would the syntax look? I noticed that in the 4D uOLED object it sends commands as such:
The above code should generate a circle, i've tried this syntax but still can't communicate with the LCD. Can anyone direct me to a tutorial or manual on how to properly communicate with peripherals using a serial link? Thank you in advance.
SERIAL.tx ("C") SERIAL.tx (X) SERIAL.tx (Y) SERIAL.tx (RADIUS) SERIAL.tx (R.byte[1]) SERIAL.tx (R.byte[0]) WAITACK
The above code should generate a circle, i've tried this syntax but still can't communicate with the LCD. Can anyone direct me to a tutorial or manual on how to properly communicate with peripherals using a serial link? Thank you in advance.
Comments
With the serial variants of the display it's normal to send a 'U' character first so the display knows what baud rate to receive at. I think you also need a CR afterwards, but I'll double check that.
I have some example code while I'll find and post shortly.
regards
tubular