70016 Parallax Inc, 70016 Datasheet - Page 87
70016
Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet
1.70016.pdf
(212 pages)
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
- Current page: 87 of 212
- Download datasheet (3Mb)
The first thing the code in the main routine does is clear the
variables. Then, a
The
key is pressed. As digits are successively entered, the
ten, then the most recent digit stored by
value = value * 10 + remoteCode
PAUSE
Boe-Bot to beep after each digit is entered. It beeps and pauses long enough that the user
lets go of the key. This prevents one press on the 5 key from being received as the value
555.
After the ENTER key is pressed and released, the
number stored by the
DO…LOOP
command follow the
' SONY TV IR remote variables
irPulse
remoteCode
' Main Routine variables
value
DEBUG "The value is: ", DEC value, CR, CR
value = 0
remoteCode = 0
DEBUG "Digits entered: "
DO
LOOP UNTIL (remoteCode = Enter)
value = value * 10 + remoteCode
GOSUB Get_Ir_Remote_Code
IF (remoteCode >= 0) AND (remoteCode <= 9) THEN
ENDIF
FREQOUT Speaker, 100, 3500
PAUSE 200
for keypad entry is conditional, and it executes until the remote's ENTER
DEBUG DEC remoteCode
DEBUG
value
VAR
VAR
VAR
command displays the "Digits entered: " message.
variable is displayed:
GOSUB Get_Ir_Remote_Code
Word
Byte
Word
remoteCode
does. Notice that a
DO…LOOP
is added to value. That's what
value
terminates, and the multi-digit
' Stores multi-digit value
command. This causes the
variable is multiplied by
value
FREQOUT
and
command and
remoteCode
Related parts for 70016
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories Breadboard Set
Manufacturer:
Parallax Inc
Part Number:
Description:
Power Entry Modules 4AA Battery Holder
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: