28139 Parallax Inc, 28139 Datasheet - Page 150

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
Step 5 - Nest the Store and Retrieve Routines in a Loop with Menu Options
The EEPROM storage and retrieval routines are working pretty well now. In this
activity, you will modify the program so that it gives you the choice of "R" for record or
"P" for playback. These characters can be used to choose between the record and
playback routines. Here is an example of the shell that contains your record and playback
routines:
with this code block:
Re-run the program and verify that it only accepts the characters: "F", "B", "R",
"L", and "Q".
Save the modified program.
DO
LOOP
DEBUG CLS,
DEBUGIN operation
DEBUG CR
IF (operation = "R") THEN
ELSEIF (operation = "P") THEN
ENDIF
' Routine - Play Back Instructions
DO
LOOP
' Routine - Record Instructions
DEBUG CR, "F, B, R, L, Q", CR,
DEBUGIN direction
SELECT direction
ENDSELECT
CASE "F", "B", "R", "L", "Q"
CASE ELSE
"R = Record", CR,
"P = Play back", CR,
"Choose operation: "
EXIT
DEBUG CR, "Invalid character", CR
"Enter Direction: "

Related parts for 28139