28139 Parallax Inc, 28139 Datasheet - Page 181

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
DO
LOOP
' -----[ Subroutine - Get_Ir_Remote_Code ]---------------------------------
' SONY TV IR remote subroutine loads the remote code into the
' remoteCode variable.
Get_Ir_Remote_Code:
GOSUB Get_Ir_Remote_Code
DEBUG CLS, "Remote button: "
SELECT remoteCode
ENDSELECT
remoteCode = 0
#SELECT $STAMP
CASE 0 TO 9
CASE Enter
CASE ChUp
CASE ChDn
CASE VolUp
CASE VolDn
CASE Mute
CASE Power
CASE TvLast
CASE ELSE
#CASE BS2, BS2E, BS2PE
' Wait for resting state between messages to end.
DEBUG DEC remoteCode
DEBUG "ENTER"
DEBUG "CH+"
DEBUG "CH-"
DEBUG "VOL+"
DEBUG "VOL-"
DEBUG "MUTE"
DEBUG "POWER"
DEBUG "LAST"
DEBUG DEC remoteCode, " (unrecognized)"
DO
LOOP UNTIL irPulse > ThresholdStart
' Measure start pulse.
' Get_Ir_Remote_Code label.
RCTIME 9, 0, irPulse
IF irPulse > OverStart OR irPulse < UnderStart THEN Get_Ir_Remote_Code
' Get data bit pulses.
RCTIME IrDet, 1, irPulse
If out of range, then retry at
Appendix A: IR Remote AppKit Documentation · Page 171
' Main DO...LOOP
' Call remote code subroutine
' Heading
' Select message to display
' Repeat main DO...LOOP

Related parts for 28139