28029 Parallax Inc, 28029 Datasheet - Page 28

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 16 · Smart Sensors and Applications
' Shift "Line 1" across Line 1 right to left, then left to right.
FOR index = 9 TO 0
NEXT
FOR index = 0 TO 9
NEXT
PAUSE 1000
' Clear LCD, then display then Display "ALL DONE" in center and flash 5 times
SEROUT 14, 84, [12]: PAUSE 5
SEROUT 14, 84, [135, "ALL", 13, 154, "DONE!"]' "ALL" and "DONE" centered
FOR index = 1 TO 4
NEXT
END
Your Turn - More Positioning
More elaborate displays can benefit from loops and lookup tables. Here is an example of
a "T E S T" display in a loop and with the help of a couple of
that you can control the position of each character's placement by adjusting the values for
offset
' IMPORTANT: Make sure there's a space after the 1 in "Line 1 ".
SEROUT 14, 84, [148 + index, "Line 1 "]
PAUSE 100
' IMPORTANT: Make sure there's a space between the " and the L character.
SEROUT 14, 84, [148 + index, " Line 1"]
PAUSE 250
SEROUT 14, 84, 500, [21, 22]
in the second
PAUSE 1000
SEROUT 14, 84, [12]: PAUSE 5
SEROUT 14, 84, ["This is a", 13]
FOR index = 0 TO 3
NEXT
Try it!
PAUSE 600
LOOKUP index, ["T", "E", "S", "T"], character
LOOKUP index, [
SEROUT 14, 84, [(148 + offset), character]
LOOKUP
1,
command's list of values.
5,
9,
13], offset
' Clear display
' Text & CR
' Character display sequence
' 1 second delay
' Clear LCD
' Flash display 5 times
' Program end
LOOKUP
commands. Note

Related parts for 28029