28029 Parallax Inc, 28029 Datasheet - Page 22

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 10 · Smart Sensors and Applications
activate its display. Here's the PBASIC command for sending the serial LCD the value
22:
Used in this way,
basic control codes:
Example Program - LcdTestMessage.bs2
SEROUT 14, 84, [22]
12
clear the display.
13
21
22
Enter, save, and run LcdTestMessage.bs2. Verify that it displayed the message
"See this?" on Line 0 and "The LCD works!" on Line 1, as in Figure 1-10.
Commands to turn the backlighting on and off (for the backlit LCD only):
Some LCDs have backlighting so that you can read them when it's dark. If you have the
backlit version of the Parallax Serial LCD (part number 27977), you can control the
backlighting with these values:
In PBASIC,
constant
Debug Terminal moves the cursor to the beginning of the next line whenever it receives the
value 13. In this case, the two commands below are the equivalent:
While this works with
For example,
display. The Parallax Serial LCD equivalent of
predefined constant for the value 1, does not send the cursor to the top left "home"
character in the LCD display. The control code
clears the display. Note: always follow with
is a carriage return; it sends the cursor to the next line.
turns the LCD off.
turns the LCD on.
22
CR
17
18
SEROUT 14, 84, ["See this?", CR, "The LCD works!"]
SEROUT 14, 84, ["See this?", 13, "The LCD works!"]
is an example of an LCD control code. Here's a list of some more
CR
in a
turns the backlighting on.
turns the backlighting off.
CLS
is a predefined constant for the value 13.
, which is a predefined constant for the number 0, does not clear the LCD
DEBUG
CR
command, it sends the value 13 to the Debug Terminal. The
, it does not work for other predefined PBASIC constants.
128
CLS
does that for the Parallax Serial LCD.
PAUSE 5
is
12
. Likewise,
to give the LCD time to
Whenever you use the
HOME
, which is a

Related parts for 28029