28139 Parallax Inc, 28139 Datasheet - Page 143

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
Here is the syntax for the
Location
Variable
you look up this command in the BASIC Stamp Editor's PBASIC Syntax Guide, it says
this about the
The great thing about Location is that it can be a "variable/constant/expression". An
expression is typically some combination of variables and constants that involve some
math.
Here is an excerpt from the next example program that uses expressions in the
arguments of its
The first READ command adds Maneuver_List (a constant equal to 15) to eeIndex (a
variable who's value is increased by one each time through the DO…LOOP). The first
time through the DO…LOOP, eeIndex will be zero, and Maneuver_List is always 15.
The result is that the READ command fetches the byte stored at EEPROM address 15
and stores it in the direction variable. Since the DATA directive discussed earlier stored
an "F" at address 15, the READ command stores an "F" in the direction variable the first
time through the loop.
READ Location, {Word} Variable {, {Word} Variable, ...}
Location
BASIC Stamp modules) that specifies the EEPROM address to read from.
Variable
eeIndex = 0
DO UNTIL (direction = "Q") OR (eeIndex = 19)
LOOP
is the name of the variable that receives the value fetched from EEPROM. If
is the EEPROM address that stores the value you want to retrieve, and
READ Maneuver_List + eeIndex, direction
READ Distance_List + eeIndex, distance
DEBUG direction, "
PAUSE 200
eeIndex = eeIndex + 1
Location
is a variable (usually a byte) where the value is stored.
READ
is a variable/constant/expression* (0 - 255 on BS1, 0 - 2047 on all other
commands.
and the
READ
Variable
command:
", DEC distance, CR
:
Location

Related parts for 28139