Parallax Backlit 2x16 LCD, #27977
PADT
Posts: 8
I have a BS2p24.· Am requesting a simple code for getting my 2x16 backlit LCD (#27977)··to display text. Even a successful display of just "Hello World" is fine.· I tried with example code but funny chars displayed instead of the expected text:· No idea what I'm doing wrong. Baud rate? is this code compatible with BS2p?
TxPin CON 0
Baud19200 CON 32
HIGH TxPin ' Set pin high to be a serial port
PAUSE 100 ' Pause for Serial LCD to initialize
SEROUT TxPin, Baud19200, [noparse][[/noparse]"Hello, this text will wrap."]
Thanks in advance,
Anna
TxPin CON 0
Baud19200 CON 32
HIGH TxPin ' Set pin high to be a serial port
PAUSE 100 ' Pause for Serial LCD to initialize
SEROUT TxPin, Baud19200, [noparse][[/noparse]"Hello, this text will wrap."]
Thanks in advance,
Anna
Comments
For the BS2P you need to change:
Baud19200 CON 32
to:
Baud19200 CON 110
For more information on how to calculate this number for the various types of Stamps look under the SEROUT command in the editor help files. The tables they give only go up to 9600, but it tells you how to calculate for higher speeds.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick
Thank you!!