Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
LCD and a BS2 — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
BASIC Stamp
LCD and a BS2
JRC610
Posts:
11
2008-08-21 14:35
edited 2008-08-21 19:15
in
BASIC Stamp
I have a Basic Stamp 2. I was wondering if I can use a LCD display with it? All I see iis for a BS2p and up.
Comments
sylvie369
Posts:
1,622
2008-08-21 17:31
edited 2008-08-21 17:31
The LCD commands are for using a parallel LCD easily with a BS2 models that include those commands.
If you have a BS2 that doesn't do the LCDIN/LCDOUT etc., you can still easily use a serial LCD with it, controlling it with simple SEROUT commands.
For example, look at this code:
(
http://www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/SerialLCD-v2.0.pdf
)
' {$STAMP BS2}
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."]
Franklin
Posts:
4,747
2008-08-21 19:15
edited 2008-08-21 19:15
JRC610, you should post replys not start new posts. If you go to the post you started and click the red X in the upper right of the post you can delete it yourself.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Sign In
or
Register
to comment.
Comments
If you have a BS2 that doesn't do the LCDIN/LCDOUT etc., you can still easily use a serial LCD with it, controlling it with simple SEROUT commands.
For example, look at this code:
(http://www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/SerialLCD-v2.0.pdf)
' {$STAMP BS2}
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."]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen