28029 Parallax Inc, 28029 Datasheet - Page 322

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
Page 310 · Smart Sensors and Applications
In all of your Serial LCD code, you should pause for 100 ms at start-up to give time for
the Serial LCD to initialize. You should also set the serial port pin on the BASIC Stamp
to HIGH before the 100 ms start-up delay, as this is the normal state of a serial port when
it isn’t sending any data.
' {$STAMP BS2}
TxPin
Baud19200
Moving the Cursor
When you send a character to the Serial LCD, it always displays at the current cursor
position. There are a few different ways to move the cursor on the Serial LCD display.
After each character you send, the cursor automatically moves over one position. Along
with this, there is a standard set of cursor move commands including Backspace, Carriage
Return, and Line Feed.
The Backspace/Left command (Dec 8) moves the cursor one place to the left and the
Right command (Dec 9) moves the cursor one place to the right. These can be useful for
moving the cursor around to overwrite existing text. These commands wrap to the next
line of the display, if necessary. The Line Feed command (Dec 10) moves the cursor to
the next line of the display without changing the horizontal position of the cursor. The
Carriage Return command (Dec 13) also moves the cursor to the next line, but it moves
the cursor to the leftmost position on that line as well. The Form Feed command (Dec
12) clears the entire display and moves the cursor to the leftmost position on Line 0, just
like when you first turn on the display. You will need to pause for 5mS in your code
after sending the Form Feed command, to give the Serial LCD time to clear the display.
Except for Form Feed, none of these move commands affects the characters on the
display.
There are also direct move commands that you can use to move the cursor to any position
on the display with a single command. The commands in the range Dec 128 to 143 and
Dec 148 to 163 move the cursor to the 16 different positions on each of the two lines of
HIGH TxPin
PAUSE 100
SEROUT TxPin, Baud19200, ["Hello, this text will wrap."]
CON
CON
0
32
' Set pin high to be a serial port
' Pause for Serial LCD to initialize

Related parts for 28029