28029 Parallax Inc, 28029 Datasheet - Page 233

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
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - EepromDataStorageWithReset.bs2
' Demonstrates storing, retrieving and erasing values in EEPROM memory.
'{$STAMP BS2}
'{$PBASIC 2.5}
' -----[ DATA Directives ]----------------------------------------------------
Reset
Records
RecordsEnd
' -----[ Variables ]----------------------------------------------------------
char
eeIndex
value
' -----[ Initialization ]---------------------------------------
READ Reset, value
value = value + 1
WRITE Reset, value
IF value // 2 = 0 THEN
ENDIF
' -----[ Main Routine ]-------------------------------------------------------
DO
FOR char = 15 TO 0
NEXT
GOTO Record_Data
DEBUG CLS, "Datalogging starts", CR,
FREQOUT 4, 50, 3750
PAUSE 950
Enter and run EepromDataStorageWithReset.bs2.
Verify that you can toggle the program’s start mode by pressing and releasing
the Reset button.
Test the program's features, and make sure they all work.
DATA
DATA
DATA
VAR
VAR
VAR
"in ", DEC2 char, " seconds",
CR, CR,
"Press/release Reset", CR,
"for menu..."
0
(10)
Byte
Word
Word
Chapter 6: Accelerometer Projects · Page 221

Related parts for 28029