28029 Parallax Inc, 28029 Datasheet - Page 285

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
program may need to display multiple copies of an all-black character for numbers
greater than 10; for this task it uses Custom Character 3.
Example Program: HorizBarGraph.bs2
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - HorizBarGraph.bs2
' Display values entered into the Debug Terminal's Receive windowpane
' as horizontal bar graph data in the LCD.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Pins ]-----------------------------------------------------------
LcdPin
Enter, save, and run HorizBarGraph.bs2.
Click the Debug Terminal's Transmit windowpane.
Type the digit 8, then press the Enter key.
Check the bar graph and make sure the leftmost character is black, and the one
next to displays Char3.
Try the values shown in Figure 7-1.
Try 45, 46, 47, 48, 49, 50, 51, 52.
Experiment with limits such as 0, 80.
Try values outside the limits. What happens?
PIN
14
Chapter 7: LCD Bar Graphs for Distance and Tilt · Page 273
' Target device = BASIC Stamp 2
' Language
' I/O pin connected to LCD's RX
Figure 7-2
Library of Definitions for
Custom Character 2
= PBASIC 2.5

Related parts for 28029