Shop OBEX P1 Docs P2 Docs Learn Events
Help pls serout — Parallax Forums

Help pls serout

Ken_tnKen_tn Posts: 16
edited 2010-05-23 12:50 in BASIC Stamp
·· 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

Comments

  • Ken_tnKen_tn Posts: 16
    edited 2010-05-23 12:50
    Ok, I am so stupid, Baud rate is 2400 for that unit. Changed to 84 to 396 and works fine.
Sign In or Register to comment.