28029 Parallax Inc, 28029 Datasheet - Page 300

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 288 · Smart Sensors and Applications
Another way of testing the display is with the alternate Main Routine shown below. It
has nested
variable values.
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - TwoAxisBarDisplay.bs2
' Displays a character that shifts both vertically and horizontally.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Pins ]-----------------------------------------------------------
LcdPin
' -----[ Constants ]----------------------------------------------------------
T9600
LcdCls
LcdCr
LcdOff
LcdOn
Line0
Line1
Define
Try the values shown in Figure 7-4 and verify that they match the displays.
Make sure to test horizontal values of 0, 8, and 16 for various vertical values.
Also test vertical values of 1, 16, and 31 for various horizontal values.
Save a copy of TwoAxisBarDisplay.bs2 as TwoAxisBarDisplayTest.bs2.
Run the modified program and watch to make sure all the values are displayed
correctly.
' -----[ Main Routine ]------------------------------------------------
DO
LOOP
FOR cursor = 0 TO 16
NEXT
FOR
FOR value = 1 TO 31
NEXT
SEROUT 14, 84, [LcdCls]
PAUSE 500
CON
...
GOSUB Bar_Graph_H_V
PAUSE 200
NEXT
PIN
CON
CON
CON
CON
CON
CON
CON
loops that test every
84
14
12
13
21
22
128
148
248
value
' True, 8-bits, no parity, 9600
variable across all the possible
' Target device = BASIC Stamp 2
' Language
' I/O pin connected to LCD's RX
' Form feed -> clear screen
' Carriage return
' Turns display off
' Turns display on
' Line 0, character 0
' Line 1, character 0
' Address defines cust char 0
= PBASIC 2.5
cursor

Related parts for 28029