28029 Parallax Inc, 28029 Datasheet - Page 240

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 228 · Smart Sensors and Applications
LOOP
' -----[ Subroutine - Clear_Data ]--------------------------------------------
Clear_Data:
' -----[ Subroutine - Record_Data ]-------------------------------------------
Record_Data:
DEBUGIN char
DEBUG CR
SELECT char
ENDSELECT
DEBUG CR, "Clearing..."
FOR eeIndex = Records TO RecordsEnd
NEXT
DEBUG CR, "Records cleared."
PAUSE 1000
RETURN
FREQOUT 4, 75, 4000
PAUSE 200
FREQOUT 4, 75, 4000
DEBUG CLS, "Recording..."
FOR eeIndex = Records TO RecordsEnd STEP 2
CASE "C", "c"
CASE "R", "r"
CASE "D", "d"
CASE ELSE
WRITE eeIndex, 0
PULSIN 6, 1, x
PULSIN 7, 1, y
GOSUB Clear_Data
GOSUB Record_Data
GOSUB Display_Data
DEBUG CR, "Not a valid entry.",
PAUSE 1500
"to arm datalogger ", CR, CR,
" - or - ", CR, CR,
"Type C, R or D", CR,
"C - Clear records", CR,
"R - Record records", CR,
"D - Display records", CR,
">"
CR, "Try again."

Related parts for 28029