28029 Parallax Inc, 28029 Datasheet - Page 228

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 216 · Smart Sensors and Applications
it was stored with the
the
Example Program: EepromDataStorage.bs2
This example program displays a three-choice menu in the Debug Terminal's Receive
windowpane shown in Figure 6-2. By typing C into the Debug Terminal's Transmit
windowpane, the values in the EEPROM set aside for storage are cleared. If R is typed,
the program records values you enter into the Receive windowpane in EEPROM. If D is
typed, the values that were stored in EEPROM are displayed.
READ
Display_Data:
Enter, save, and run EepromDataStorage.bs2.
Click the Debug Terminal's Transmit windowpane.
Type R, and then enter eleven values between −100 and 100. Press the Enter
key when prompted after the eleventh value to get back to the menu.
command to bring
DEBUG CR, "Index
FOR eeIndex = Records TO RecordsEnd
NEXT
DEBUG CR, "Press Enter for menu..."
DEBUGIN char
RETURN
READ eeIndex, value
value = value - 100
DEBUG DEC eeIndex, CRSRX, 7, SDEC value, CR
CR, "-----
CR
WRITE
value
command, 100 is subtracted from the
Record",
------",
back into the −100 to 100 scale.
Transmit
Windowpane
Receive
Windowpane
Figure 6-2
Entering Values for
EepromDataStorage.
bs2
value
variable after

Related parts for 28029