28029 Parallax Inc, 28029 Datasheet - Page 50

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 38 · Smart Sensors and Applications
E3. Example solution:
E4. Example solution:
E5. Example solution:
E6. Example solution:
' Smart Sensors and Applications - Ch1_Ex03.bs2
' Make message flash on and off once per second
' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 14, 84, [22, 12]
'
SEROUT 14, 84, ["
DO
LOOP
' Smart Sensors and Applications - Ch1_Ex04.bs2
' Print Start beginning of Line1, Finish end of Line2
' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 14, 84, [22, 12]
SEROUT 14, 84, ["Start"]
SEROUT 14, 84, [158]
SEROUT 14, 84, ["Finish"]
' Smart Sensors and Applications - Ch1_Ex05.bs2
' Print at 19200 baud
' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 14, 32, [22, 12]
SEROUT 14, 32, ["Using 19200 bps"]
' Smart Sensors and Applications - Ch1_Ex06.bs2
' Print at 2400 baud
' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 14, 396, [22, 12]
SEROUT 14, 396, ["Using 2400 bps"]
SEROUT 14, 84, [21]
PAUSE 500
SEROUT 14, 84, [22]
PAUSE 500
1234567890123456
Hello
", CR]
' Turn on, clear screen
' Print on Line 0
' Line2,6th char from rt edge
' Print rt edge of Line 1
' Turn on, clear screen
' Center text on top line
' Turn screen off
' Turn screen on
' Turn on, clear screen
' Print on Line 0
' Turn on, clear screen
' Print on Line 0

Related parts for 28029