28139 Parallax Inc, 28139 Datasheet - Page 138

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
When the program starts, the value of
would be a problem because none of the
a command setting
The main routine from 7BitRemoteBoeBot.bs2 was modified to let you change the value
of the
to handle a press/release of the POWER key.
One problem is, what happens if you press/release the POWER key when
(roaming) or 3 (following)? In these two modes, there isn't any way to change the value
of the
beginning of the roaming and following routines that checks for an incoming message
from the remote. This one line of code can be added to the other two roaming routines to
make them respond to a press of the POWER key.
With this one line of code, the first thing the roaming and following routines do is check
to find out if a message from the remote really is coming in. If it is
value of
main routine from 7BitRemoteBoeBot.bs2 will be executed. This routine has a
statement for processing the POWER key and storing a new value in the operation
operation
remoteCode
' -----[ Initialization ]---------------------------------------------
operation = 1
operation
SELECT remoteCode
IF (IN9 = 0) THEN operation = 1
CASE Power
variable with the remote. To do this, a
operation
FREQOUT Speaker, 100, 3500
PAUSE 100
FREQOUT Speaker, 100, 3500
PAUSE 200
DEBUG "Select operation mode...", CR
GOSUB Get_Ir_Remote_Code
operation = remoteCode
DEBUG ? operation, CR,
FREQOUT Speaker, 100, 3500
PAUSE 100
FREQOUT Speaker, 100, 3500
PAUSE 200
variable with the remote. A simple solution is to insert a line at the
is changed to 1. The next time through the
"Running...", CR
to 1 was added to the Initialization section.
operation
CASE
statements accept a zero. For this reason,
is initialized to zero by default. This
CASE
' Initialize to remote.
' <--- New
statement had to be added
DO…LOOP
(IN9 = 0)
operation
, the modified
, then, the
CASE
is 2

Related parts for 28139