28139 Parallax Inc, 28139 Datasheet - Page 144

KIT REMOTE IR FOR BOE-BOT W/TEXT

28139

Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Datasheets

Specifications of 28139

Accessory Type
IR Remote
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
The second time through, eeIndex will be 1 while Maneuver_List is still 15. The READ
command fetches the "L" stored at address 16 and stores it in the direction variable. The
third time through the loop, eeIndex is 2, so the Location expression evaluates to 17, and
"R" is stored in the direction variable.
The same principle applies to the second READ command, except that Distance_List is
35, so the first time through, the value 40 is fetched from EEPROM and stored in
distance, the second time through, 20, the third time through, another 20, and so on.
Example Program – DebugPlayback.bs2
This example program stores values in the BASIC Stamp's EEPROM with the
directive, then retrieves and displays these items with the
' -----[ Title ]-----------------------------------------------------------
' IR Remote for the Boe-Bot - DebugPlayback.bs2
' Fetch and display DataItems from a pair of DATA directives.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ EEPROM Data ]-----------------------------------------------------
' -----[ Variables ]-------------------------------------------------------
' -----[ Main Routine ]----------------------------------------------------
Maneuver_List
Distance_List
direction
distance
eeIndex
' Playback routine
eeIndex = 0
DO UNTIL (direction = "Q") OR (eeIndex = 19)
READ Maneuver_List + eeIndex, direction
READ Distance_List + eeIndex, distance
DEBUG direction, "
Enter and run DebugPlayback.bs2.
VAR
VAR
VAR
DATA
DATA
Byte
Byte
Byte
", DEC distance, CR
@ 15,
@ 35,
"F", "L", "R", "B", "Q"
40,
20,
20,
40,
READ
0
command.
DATA

Related parts for 28139