70016 Parallax Inc, 70016 Datasheet - Page 144

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 70016

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
70016SE
Manufacturer:
ST
0
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 70016