70016 Parallax Inc, 70016 Datasheet - Page 70

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
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 70016