Help pls serout
Ken_tn
Posts: 16
·· I am new to the BS2 I have a WHAT IS A MICROCONTROLLER KIT and I purchased a P.H. Anderson LCD #117 it seemed to be a simple interface BLACK - VSS, RED -·VDD and YELLOW to Pin 0 some test code I have found, but cannot get it to work.
' {$STAMP BS2}
' {$PBASIC 2.5}
BaudMode CON 84 '9600 True
DIR0 =·1 ' Make P0 Output
High 0····' This is for steady State Non-Inverting
PAUSE 1000 ' allow to stabilize
SEROUT 0, BaudMode, [noparse][[/noparse]"?G420"] ' Sets geometry of LCD as 4X20
PAUSE 200 ' pause to allow LCD EEPROM to program
SEROUT 0, Baudmode, [noparse][[/noparse]"?f"] ' clear the LCD
DO
SEROUT 0, BaudMode, [noparse][[/noparse]"?y1?x00"] ' cursor at line 1, col 0
PAUSE 500
SEROUT 0, 84, [noparse][[/noparse]" Hello World"]
PAUSE 5000
LOOP
Post Edited (Ken_tn) : 5/23/2010 2:32:39 PM GMT
' {$STAMP BS2}
' {$PBASIC 2.5}
BaudMode CON 84 '9600 True
DIR0 =·1 ' Make P0 Output
High 0····' This is for steady State Non-Inverting
PAUSE 1000 ' allow to stabilize
SEROUT 0, BaudMode, [noparse][[/noparse]"?G420"] ' Sets geometry of LCD as 4X20
PAUSE 200 ' pause to allow LCD EEPROM to program
SEROUT 0, Baudmode, [noparse][[/noparse]"?f"] ' clear the LCD
DO
SEROUT 0, BaudMode, [noparse][[/noparse]"?y1?x00"] ' cursor at line 1, col 0
PAUSE 500
SEROUT 0, 84, [noparse][[/noparse]" Hello World"]
PAUSE 5000
LOOP
Post Edited (Ken_tn) : 5/23/2010 2:32:39 PM GMT
Comments