28029 Parallax Inc, 28029 Datasheet - Page 295

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
Example Program: TestVerticalBars.bs2
This example program displays the 16 different vertical bar custom characters on the
Parallax Serial LCD's Line 0, character-8. It does so in rapid succession, over and over
again. It also displays the number that the
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - TestVerticalBars.bs2
' Displays sixteen different vertical bar characters on Line 0, character-8
' of the Parallax Serial LCD.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Pins ]-----------------------------------------------------------
LcdPin
' -----[ Constants ]----------------------------------------------------------
T9600
LcdCls
LcdOn
Line0
Line1
Define
' -----[ Variables ]----------------------------------------------------------
custChar
index
rowMap
cursor
value
line
' -----[ Initialization ]-----------------------------------------------------
' LCD initializiation.
PAUSE 100
Open TestVerticalBars.bs2 in the BASIC Stamp Editor.
Run it and verify that all the custom characters in Figure 7-3 are displayed.
Increase the
Re-run the program and verify that the LCD bars correctly represent the numbers
displayed in the Debug Terminal.
PIN
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
PAUSE
14
84
12
22
128
148
248
Byte
Nib
Byte
Byte
Byte
Byte
command’s
Chapter 7: LCD Bar Graphs for Distance and Tilt · Page 283
Duration
value
variable stores in the Debug Terminal.
argument.
' Target device = BASIC Stamp 2
' Language
' I/O pin connected to LCD's RX
' True, 8-bits, no parity, 9600
' Form feed -> clear screen
' Turns display on
' Line 0, character 0
' Line 1, character 0
' Address defines cust char 0
' Custom character selector
' Eeprom index variable
' 5-pixel dotted line
' Cursor placement
' Value to be graphed
' Line0 or Line1
' Debounce power supply
= PBASIC 2.5

Related parts for 28029