28029 Parallax Inc, 28029 Datasheet - Page 86
28029
Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
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
- Current page: 86 of 340
- Download datasheet (5Mb)
Page 74 · Smart Sensors and Applications
Always remember to add this initialization, either before the Main Routine, or in small
programs, before the first
repeated over and over again in the
keep it out of the main
Next, the
DEBUG
The
?
afterwards. Remember from Chapter 1 that
to be the same for both the Debug Terminal and the Parallax Serial LCD? Because of
this, we can leave the
command that does the equivalent display on the Parallax Serial LCD.
Example Program: SimpleTiltLcd.bs2
This program is a modified version of SimpleTilt.bs2 from the previous activity. Instead
of displaying its measurements in the Debug Terminal, it displays them in the Parallax
Serial LCD.
' Smart Sensors and Applications - SimpleTiltLcd.bs2
' Measure room temperature tilt and display them on the Parallax Serial LCD.
'{$STAMP BS2}
'{$PBASIC 2.5}
x
y
directive displays the variable name, and then a carriage return (
√
√
√
HOME
command from SimpleTilt.bs2.
' Initialize LCD
PAUSE 200
SEROUT 14, 84, [22, 12]
PAUSE 5
Connect a battery to your board.
Enter, save and run SimpleTiltLcd.bs2.
Disconnect the serial cable, and take your board with you to wherever you want
to test the Memsic Accelerometer's measurements.
DEBUG
DEBUG HOME, DEC4 ? X, DEC4 ? Y
SEROUT 14, 84, [128, DEC4 ? X, DEC4 ? Y]
control should be replaced with 128, which is the LCD's home character. The
VAR
VAR
commands need to be changed to
?
DO
directive in the
Word
Word
...
DO
LOOP
keyword. That will keep the initialization from being
because it could cause the display to flicker.
DO
...
SEROUT
LOOP
CR
with the rest of the program. Make sure to
commands to the LCD. Here is a
is the one control character that happens
SEROUT
commands. Here is the
CR
) character
SEROUT
Related parts for 28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: