28139 Parallax Inc, 28139 Datasheet - Page 105

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
In place of all that code you just removed from the main routine, add this
subroutine call just before
GOSUB Servo_Pulses
Change the line in the main routine that reads:
so that it reads:
Save, run, and test the program. Verify that it behaves the same as the
implementation.
FOR counter = 1 TO value
NEXT
RETURN
GOTO Servo_Pulses
GOSUB Servo_Pulses
SELECT direction
ENDSELECT
PAUSE 20
CASE ChUp
CASE ChDn
CASE VolUp
CASE VolDn
PULSOUT ServoLeft, 850
PULSOUT ServoRight, 650
PULSOUT ServoLeft, 650
PULSOUT ServoRight, 850
PULSOUT ServoLeft, 850
PULSOUT ServoRight, 850
PULSOUT ServoLeft, 650
PULSOUT ServoRight, 650
LOOP
:
GOTO

Related parts for 28139