28029 Parallax Inc, 28029 Datasheet - Page 32

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
Figure 1-13: Predefined Custom Characters O (Backslash) and 1 (Tilde)
Page 20 · Smart Sensors and Applications
Example Program: PredfinedCustomCharacters.bs2
This example sends the serial LCD the two commands to make it display Custom
Characters 0 and 1, the backslash "\" and tilde "~".
' Smart Sensors and Applications - PredefinedCustomCharacters.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 14, 84, [22, 12]
PAUSE 5
' Display pre-defined custom characters: "\" (custom-character-0) and
' "~" (custom-character-1).
SEROUT 14, 84, [0, 1]
Defining (and Redefining) Custom Characters
The Parallax Serial LCD's custom characters are stored in its RAM. To define one of its
eight custom characters, your
custom characters you are defining and then describe the on/off states of each pixel in the
character. Each character has 40 pixels, 8 pixels tall by 5 pixels wide.
Figure 6-14 shows the Define commands you can send the LCD to tell it which custom
character you are about to define. You can also think about it like this: to tell the LCD
which custom character you are defining, send the value of the custom character plus
248. For example, if you want to define Custom Character 0, send
define Custom Character 1, send
Enter and run the program, and verify that it displays the backslash and tilde.
SEROUT
249
, and so on up to
command has to tell the LCD which of the eight
' Initialize LCD
' 5 ms delay for clearing display
255
for Custom Character 7.
248
, if you want to

Related parts for 28029