28139 Parallax Inc, 28139 Datasheet - Page 74

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
NOTE: Remotes typically use LAST and PREV CH for the same function, to cause the TV
to switch to the channel that was previously viewed.
How IrRemoteButtons.bs2 Works
This
can now use the name
command, so instead of
IrPulse
These constant names can be used in place of the keypad values. This allows you to
make decisions on the value from the infrared remote with meaningful names such as
Enter
IF…THEN
to use
PIN
IF (remoteCode = Enter) THEN
instead of 11 and
Run TestIrRemoteButtons.bs2 and test the remote's keypad keys as well as the
other buttons listed in the constant declarations section.
Try the MUTE , and LAST/PREV CH keys, what happened? The Your Turn portion
of this activity will give you some hints for solving this.
' -----[ I/O Definitions ]---------------------------------------------
' SONY TV IR remote declaration - input receives from IR detector
IrDet
' -----[ Constants ]---------------------------------------------------
' SONY TV IR remote constants for non-keypad buttons
Enter
ChUp
ChDn
VolUp
VolDn
Power
.
declaration gives a name to the I/O pin that senses the IR detector's output. You
decision depending on whether or not the ENTER key is pressed, it's much better
IrDet
PIN
CON
CON
CON
CON
CON
CON
PULSIN 9, 0, IrPulse
ChUp
in place of
instead of 16. For example, if you want to make an
9
11
16
17
18
19
21
IN9
instead of
. You can also use it as an argument to a
, you can use
IF (remoteCode = 11) THEN
PULSIN IrDet, 0,
.

Related parts for 28139