70016 Parallax Inc, 70016 Datasheet - Page 93

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

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
Part Number:
70016SE
Manufacturer:
ST
0
' -----[ Subroutine - Beep_Valid ]------------------------------------
' Call this subroutine to acknowledge a key press.
Beep_Valid:
' -----[ Subroutine - Beep_Error ]------------------------------------
' Call this subroutine to reject a key press.
Beep_Error:
value = 0
remoteCode = 0
DO
LOOP UNTIL (remoteCode = Enter)
RETURN
FREQOUT Speaker, 100, 3500
PAUSE 200
RETURN
FREQOUT Speaker, 100, 3000
PAUSE 200
RETURN
value = value * 10 + remoteCode
DO
LOOP
GOSUB Get_Ir_Remote_Code
IF (remoteCode < 10) THEN
ELSEIF (remoteCode = Enter) THEN
ELSE
ENDIF
DEBUG "You pressed: ", DEC1 remoteCode, CR
GOSUB Beep_Valid
EXIT
DEBUG "You pressed: ENTER", CR
GOSUB Beep_Valid
EXIT
DEBUG "Press 0-9 or ENTER", CR
GOSUB Beep_Error

Related parts for 70016