28029 Parallax Inc, 28029 Datasheet - Page 265

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
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 4
NEXT
CASE "C", "c"
CASE "R", "r"
CASE "D", "d"
CASE ELSE
WRITE eeIndex, 0
PULSIN 6, 1, x
PULSIN 7, 1, y
WRITE eeIndex, Word x
WRITE eeIndex + 2, Word y
GOSUB Clear_Data
GOSUB Record_Data
GOSUB Display_Data
DEBUG CR, "Not a valid entry.",
PAUSE 1500
">"
CR, "Try again."
Chapter 6: Accelerometer Projects · Page 253

Related parts for 28029