28139 Parallax Inc, 28139 Datasheet - Page 80

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
' -----[ Title ]-----------------------------------------------------------
' IR Remote for the Boe-Bot - 7BitRemoteBoeBot.bs2
' With an IR remote configured to control a SONY TV, point the remote at
' the Boe-Bot and press and hold the 1-9 keys for different maneuvers.
' You can also use CH+/- and VOL+/-..
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ 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
' -----[ Variables ]-------------------------------------------------------
' SONY TV IR remote variables
irPulse
remoteCode
' -----[ Initialization ]--------------------------------------------------
DEBUG "Press and hold a key (1-9 or CH/VOL)..."
FREQOUT 4, 2000, 3000
' -----[ Main Routine ]----------------------------------------------------
' Boe-Bot button control routine.
DO
' Call subroutine that loads the IR message value into the
' remoteCode variable.
GOSUB Get_Ir_Remote_Code
' Send PULSOUT durations for the various maneuvers based on
PIN
CON
CON
CON
CON
CON
CON
VAR
VAR
9
11
16
17
18
19
21
Word
Byte
' Start/reset indicator.

Related parts for 28139