I bought a LCD screen a few days ago, the protocol is 9600 baud with 8 data bits and 1 stop bit no parity. I have tried this code and it always sends me to error catching as i try to clear screen because im not recieving a 6 back. I get 00000000 or 01111111. Here is the hello example they send with lcd.
'Variable Definitions********************************************
RS_IN VAR Byte
CHARACTER VAR Byte
XPOS VAR Byte
LOOP1 VAR Byte
'Initial I/O Settings********************************************
INPUT 14 'serial in to BS2 from ezDISPLAY
HIGH 15 'serial out from BS2 to ezDISPLAY
'Wait max time for ezDISPLAY to be ready*************************
PAUSE 91
'Clear screen****************************************************
SEROUT 15,84,“E”,1]
SERIN 14,84,[RS_IN]
IF RS_IN<>6 THEN err
'Draw "Hello World"**********************************************
XPOS=36
FOR LOOP1=0 TO 10
LOOKUP LOOP1,“H”,“e”,“l”,“l”,“o”," ",“W”,“o”,“r”,“l”,“d”],CHARACTER
SEROUT 15,84,“C”,0,CHARACTER,XPOS,36]
SERIN 14,84,[RS_IN]
IF RS_IN<>6 THEN err
XPOS=XPOS+8
NEXT
END
'Error Traping***************************************************
err:
GOTO err