122-28029 Parallax Inc, 122-28029 Datasheet - Page 229

GUIDE STUDENT SMART SENSORS

122-28029

Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet

Specifications of 122-28029

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - EepromDataStorage.bs2
' Demonstrates storing, retrieving and erasing values in EEPROM memory.
'{$STAMP BS2}
'{$PBASIC 2.5}
' -----[ DATA Directives ]----------------------------------------------------
Records
RecordsEnd
' -----[ Variables ]----------------------------------------------------------
char
eeIndex
value
' -----[ Main Routine ]-------------------------------------------------------
DO
DEBUG CLS,
DEBUGIN char
DEBUG CR
SELECT char
ENDSELECT
CASE "C", "c"
CASE "R", "r"
CASE "D", "d"
CASE ELSE
GOSUB Clear_Data
GOSUB Record_Data
GOSUB Display_Data
DEBUG CR, "Not a valid entry.",
PAUSE 1500
Type D and verify that the values you entered are correctly displayed. Press the
enter key to return to the menu.
Type C to clear the memory.
Type D to verify that the memory values have been cleared (set to zero).
"Type C, R or D", CR,
"C - Clear records", CR,
"R - Record records", CR,
"D - Display records", CR,
">"
CR, "Try again."
DATA
DATA
VAR
VAR
VAR
(10)
Byte
Word
Word
Chapter 6: Accelerometer Projects · Page 217

Related parts for 122-28029