28139 Parallax Inc, 28139 Datasheet - Page 86

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
How EnterLargeValues.bs2 Works
This program started as IrRemoteButtons.bs2. Only the I/O Definitions, Variables, and
Main Routine sections were modified.
Replace the
DO
LOOP
Follow the Debug Terminal's prompts, and type in a number on your remote as
though you are entering a number into a calculator.
Press and release the ENTER key.
Verify that the value the BASIC Stamp stores is correct.
Use the keypad and ENTER key to enter and store numbers with several digits
into the BASIC Stamp.
In addition to the variables for decoding the IR remote message, a word variable
named
the remote. The
FREQOUT
DEBUG "Type a value (up to 65535)", CR, "Then press ENTER", CR, CR
value = 0
remoteCode = 0
DEBUG "Digits entered: "
DO
LOOP UNTIL (remoteCode = Enter)
DEBUG CR, "The value is: ", DEC value, CR, CR
value = value * 10 + remoteCode
GOSUB Get_Ir_Remote_Code
IF (remoteCode >= 0) AND (remoteCode <= 9) THEN
ENDIF
FREQOUT Speaker, 100, 3500
PAUSE 200
DEBUG DEC remoteCode
value
command’s
DO…LOOP
is declared. This variable stores the multi-digit value entered into
Speaker PIN 4
in the main routine with this one:
Pin
argument.
directive, allows you to use
Speaker
in the

Related parts for 28139