122-28029 Parallax Inc, 122-28029 Datasheet - Page 23

GUIDE STUDENT SMART SENSORS

122-28029

Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet

Specifications of 122-28029

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
' Smart Sensors and Applications - LcdTestMessage.bs2
' Display a test message on the Parallax Serial LCD.
' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 14, 84, [22, 12]
PAUSE 5
SEROUT 14, 84, ["See this?", 13,
END
Your Turn - Control Codes to Make the Display Flash On/Off
Remember that
codes to make the text flash on and off.
Replace the
DO
LOOP
Run the modified program and note the effect.
If the LCD didn't display properly: Double-check your wiring, your program, and the SW
settings on the back of the LCD. Also try disconnecting and reconnecting power to your
Board of Education. If needed, Go through the check-marked instructions leading up to this
program, and verify that each one was completed correctly.
PAUSE 600
SEROUT 14, 84, [22]
PAUSE 400
SEROUT 14, 84, [21]
22
"The LCD works!"]
turns the display on, and
END
command in LcdTestMessage.bs2 with this code block.
21
Chapter 1: Parallax Serial LCD Display · Page 11
' Start DO...LOOP code block
' 6/10 second delay
' Turn display on
' 4/10 second delay
' Turn display off
' Repeat DO...LOOP code block
turns it off? You can use these control
' Target device = BASIC Stamp 2
' Language
' Initialize LCD
' Text message, carriage return
' more text on Line 1.
' Program end
Figure 1-10
Text Display
= PBASIC 2.5

Related parts for 122-28029