28139 Parallax Inc, 28139 Datasheet - Page 79

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
A complete copy of the program is below.
DO
LOOP
Run and test the program. Verify that the 1 through 9 keys perform as expected.
Try the CH+/- and VOL +/- keys too, and verify that they work correctly.
Think about how much easier this was than the approach that was used in
Chapter 1, Activities #4 and #5.
Save your work, you will also save copies of this program and modify it later.
' 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
' the value of the remoteCode variable.
SELECT remoteCode
ENDSELECT
CASE 2, ChUp
CASE 4, VolDn
CASE 6, VolUp
CASE 8, ChDn
CASE 1
CASE 3
CASE 7
CASE 9
CASE ELSE
PULSOUT 13, 850
PULSOUT 12, 650
PULSOUT 13, 650
PULSOUT 12, 650
PULSOUT 13, 850
PULSOUT 12, 850
PULSOUT 13, 650
PULSOUT 12, 850
PULSOUT 13, 750
PULSOUT 12, 650
PULSOUT 13, 850
PULSOUT 12, 750
PULSOUT 13, 750
PULSOUT 12, 850
PULSOUT 13, 650
PULSOUT 12, 750
PULSOUT 13, 750
PULSOUT 12, 750
' Forward
' Rotate Right
' Rotate Left
' Backward
' Pivot Fwd-left
' Pivot Fwd-right
' Pivot back-left
' Pivot back-right
' Hold position

Related parts for 28139