28029 Parallax Inc, 28029 Datasheet - Page 82

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 70 · Smart Sensors and Applications
' Smart Sensors and Applications - SimpleTilt.bs2
' Measure room temperature tilt.
'{$STAMP BS2}
'{$PBASIC 2.5}
x
y
DEBUG CLS
DO
LOOP
PULSIN 6, 1, x
PULSIN 7, 1, y
DEBUG HOME, DEC4 ? X, DEC4 ? Y
PAUSE 100
Make sure your board is sitting flat on the table, oriented with its x and y axes as
shown in Figure 3-4.
Enter and run SimpleTilt.bs2.
Check to make sure the Debug Terminal reports that the
both storing values around of 2500 as shown in Figure 3-5.
VAR
VAR
Word
Word
Figure 3-5
Debug Terminal
Output
x
and
y
variables are

Related parts for 28029