28139 Parallax Inc, 28139 Datasheet - Page 73

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
You will be saving many copies of this file, and then modifying these copies to perform a
variety of Boe-Bot functions.
Let’s modify a copy of IrRemoteButtons.bs2 to print out descriptions of keys that aren’t
numeric. To test the remote, the
program recognizes all the different keys. Remember,
a variable and evaluate it on a case by case basis. You can use single values, a list of
values separated by commas, or a range of values.
Use the File → Save As menu to save a copy of this program. Use the name
TestIrRemoteButtons.bs2.
Replace the existing main routine with this code block:
DO
LOOP
GOSUB Get_Ir_Remote_Code
DEBUG CLS, "Remote code: "
SELECT remoteCode
ENDSELECT
DEBUG CLREOL
CASE 0 TO 9
CASE Enter
CASE ChUp
CASE ChDn
CASE VolUp
CASE VolDn
CASE Power
CASE ELSE
DEBUG DEC remoteCode
DEBUG "ENTER"
DEBUG "CH+"
DEBUG "CH-"
DEBUG "VOL+"
DEBUG "VOL-"
DEBUG "POWER"
DEBUG DEC remoteCode, " (unrecognized)"
SELECT…CASE
statement will be used to make sure the
SELECT…CASE
allows you to select

Related parts for 28139