28139 Parallax Inc, 28139 Datasheet - Page 71

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
Example Program: IrRemoteButtons.bs2
' -----[ Title ]-----------------------------------------------------------
' IR Remote for the Boe-Bot - IrRemoteButtons.bs2
' Capture and store button codes sent by a universal remote configured to
' control a SONY TV.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]-------------------------------------------------
' SONY TV IR remote declaration - input received from IR detector
IrDet
' -----[ Constants ]-------------------------------------------------------
' SONY TV IR remote constants for non-keypad buttons
Enter
ChUp
ChDn
VolUp
VolDn
Power
' -----[ Variables ]-------------------------------------------------------
' SONY TV IR remote variables
irPulse
remoteCode
' -----[ Main Routine ]----------------------------------------------------
' Replace this DO...LOOP with your own Code.
DO
GOSUB Get_Ir_Remote_Code
DEBUG CLS, "Remote code: ", DEC remoteCode
PAUSE 100
Enter, save, and run IrRemoteButtons.bs2.
Make sure to save this program under the name IrRemoteButtons.bs2.
Press and release each digit key on the remote and verify that the correct digit is
displayed.
Try out the ENTER , CH+ , CH- , VOL+ , VOL- , and POWER keys. Verify that the
displayed value matches the
PIN
CON
CON
CON
CON
CON
CON
VAR
VAR
9
11
16
17
18
19
21
Word
Byte
CON
directives in the program.

Related parts for 28139