28139 Parallax Inc, 28139 Datasheet - Page 103

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
Your Turn – Repeating The "LAST" Action
For TV control, the LAST button (sometimes labeled PREV CH ) switches you back to the
channel you viewed just before the channel you are currently watching. The LAST/PREV
CH button could be wisely employed.
accomplish this task.
Save KeypadDirectionDistance.bs2 as KeypadDirectionDistanceYourTurn.bs2.
The Your Turn section of Activity #2 went through expanding the list of
directives for IR remote buttons. Here is a constant you will need to add to your
program for the LAST/PREV CH button:
Modify this
by adding a condition to the
to a label named
Last
DO
LOOP UNTIL (remoteCode >= ChUp) AND (remoteCode <= VolDn)
DO
LOOP UNTIL (remoteCode >= ChUp) AND (remoteCode <= VolDn)
NEXT
ENDSELECT
PAUSE 20
GOSUB Get_Ir_Remote_Code
IF (remoteCode < ChUp) OR (remoteCode > VolDn) THEN
ENDIF
GOSUB Get_Ir_Remote_Code
IF (remoteCode) = Last THEN
ELSEIF (remoteCode < ChUp) OR (remoteCode > VolDn) THEN
ENDIF
DEBUG "Select direction (CH/VOL):", CR
GOSUB Beep_Error
GOSUB Beep_Valid
GOTO Servo_Pulses
DEBUG "Select direction (CH/VOL):", CR
GOSUB Beep_Error
PULSOUT ServoRight, 650
DO…LOOP
Servo_Pulses
CON
:
59
IF…THEN
if
Here's one way to modify your program to
remoteCode
statement that causes the program to jump
stores the
Last
constant value.
CON

Related parts for 28139