28029 Parallax Inc, 28029 Datasheet - Page 51

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
P1. Example solution:
P2. All three copies will change into the newly defined character! It's like magic. A
' Smart Sensors and Applications - Ch1_Project1.bs2
' Display a 6-line message
' {$STAMP BS2}
' {$PBASIC 2.5}
LcdPin
T9600
PAUSE 250
SEROUT 14, 84, [22, 12]
PAUSE 5
SEROUT LcdPin, T9600, ["I have never let"]
SEROUT LcdPin, T9600, ["my schooling
PAUSE 1500
SEROUT LcdPin, T9600, ["interfere with
SEROUT LcdPin, T9600, ["my education.
PAUSE 1500
SEROUT LcdPin, T9600, ["
SEROUT LcdPin, T9600, ["
END
sample program is shown below.
' Smart Sensors and Applications - Ch1_Project2.bs2
' Print 3 copies of custom character, then redefine character.
' {$STAMP BS2}
' {$PBASIC 2.5}
Line0
Line1
copies
PAUSE 250
SEROUT 14, 84, [22, 12]
PAUSE 5
display
SEROUT 14, 84, [248,
PIN
CON
CON
CON
VAR
%00110,
%00101,
%00100,
%11111,
%00100,
%01110,
%10101,
%00100]
14
84
128
148
Nib
-Mark Twain"]
1835-1910 "]
Chapter 1: Parallax Serial LCD Display · Page 39
' Turn on display and clear
' 5 ms delay for clearing display
"]
"]
"]
' Target device = BASIC Stamp 2
' Language
' Turn on display and clear
' 5 ms delay for clearing
' Define Custom Character 0
'
'
'
' * * * * *
'
'
' *
'
* * *
* *
*
*
*
*
*
*
*
= PBASIC 2.5

Related parts for 28029