70016 Parallax Inc, 70016 Datasheet - Page 103

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 70016

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
70016SE
Manufacturer:
ST
0
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 70016