28029 Parallax Inc, 28029 Datasheet - Page 122

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 110 · Smart Sensors and Applications
Your Turn - LCD Display
Modifying the example program to display the tilt measurements on the Parallax Serial
LCD is still a matter of adding an Initialization routine and porting
SEROUT
characters that don't change in the Initialization routine to prevent display flicker.
Save HorizontalTilt.bs2 as HorizontalTiltLcd.bs2
Replace the
' Initialize LCD
PAUSE 200
SEROUT 14, 84, [22, 12]
PAUSE 5
SEROUT 14, 84, [128, "x-tilt=",
SEROUT 14, 84, [255,
Replace the first
SEROUT
marks. The four spaces are needed to erase the maximum of four characters that
the command might send to the LCD: a negative sign, two digits, and the
Custom Character 7 degree symbol.
SEROUT 14, 84, [135, "
Replace the second
Again, make sure to put four spaces between the quotation marks to erase the
previous value.
SEROUT 14, 84, [155, "
Change
Run the program and test the display.
commands. As with the program from Activity #5, this program displays
command below. Make sure there are four spaces between the quotation
PAUSE 100
DEBUG
148, "y-tilt="]
%01000,
%10100,
%01000,
%00000,
%00000,
%00000,
%00000,
%00000]
DEBUG
command in the Initialization routine with this.
to
DEBUG
PAUSE 350
command in the Main Routine's
command in the Main Routine's
", 135, SDEC angle, 7]
", 155, SDEC angle, 7]
.
' Define Custom Character 7
'
' *
'
'
'
'
'
'
*
*
*
DEBUG
DO
DO
...
...
LOOP
LOOP
commands to
with this.
with the

Related parts for 28029