28139 Parallax Inc, 28139 Datasheet - Page 70

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
ACTIVITY #2: DESIGNING A REUSABLE REMOTE PROGRAM
Up to this point, you have completed a program that performs IR remote message capture
and decoding for SONY TV signals. Before doing more Boe-Bot applications, it's better
to rewrite the program so that all the work is done in subroutines. Along with the
subroutines, the program should also have
declarations for the variables that are used by the subroutines.
Building an Application for Reading the IR Remote
This next program is a more reusable version of PulsesToByteValueYourTurn.bs2. Here
are the changes that were made to it:
Constants – keypad values with meaningful names
Variables – variables that have to be used with the subroutines
Main routine – call the subroutine and display the data
Subroutine – capture message pulses from the infrared remote and decode
Table 2-1 was used to build a list of
The
section.
A very simple main routine that displays the IR remote code in the Debug
Terminal was inserted here along with a comment to add your own code.
This one should contain everything inside the main the
PulsesToByteValueYourTurn.bs2.
VAR
declarations from PulsesToByteValue.bs2 were given their own
Key
Table 2-1: Remote Key Codes
POWER
ENTER
VOL+
VOL-
CH+
CH-
0-9
CON
Decimal
Value
directives for non-numbered keys and
CON
directives.
DO
...
LOOP
from
VAR

Related parts for 28139