28139 Parallax Inc, 28139 Datasheet - Page 162

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
' Acquire multi-digit value (up to 65535) and store it in
' the value variable.
' pressed.
Get_Multi_Digit_Value:
' -----[ 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
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
Speaker beeps each time a key is

Related parts for 28139