28139 Parallax Inc, 28139 Datasheet - Page 89

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
Adding a Keypad Entry Feature to Your Application
By copying the functional part of EnterLargeValues.bs2 into a subroutine in
IrRemoteButtons.bs2, you will have a new application program that can either read single
remote button presses or receive large values with keypad entry. Which function the
application performs depends on which subroutine is called.
Example Program – IrRemoteKeypad.bs2
Add these two subroutines to the end of your program:
' -----[ 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:
Test this solution and verify that it works.
Save your work.
Open EnterLargeValuesYourTurn.bs2 and save it as IrRemoteKeypad.bs2.
Add a subroutine named
FREQOUT Speaker, 100, 3500
PAUSE 200
RETURN
FREQOUT Speaker, 100, 3000
PAUSE 200
RETURN
Get_Multi_Digit_Value
to IrRemoteKeypad.bs2.

Related parts for 28139