28139 Parallax Inc, 28139 Datasheet - Page 91

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
' -----[ Title ]-----------------------------------------------------------
' IR Remote for the Boe-Bot - IrRemoteKeypad.bs2
' Capture and store button codes sent by a universal remote configured to
' control a SONY TV.
' multi-digit values.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]-------------------------------------------------
' SONY TV IR remote declaration - input receives from IR detector
IrDet
Speaker
' -----[ Constants ]-------------------------------------------------------
' SONY TV IR remote constants for non-keypad buttons
Enter
ChUp
ChDn
VolUp
VolDn
Power
' -----[ Variables ]-------------------------------------------------------
' SONY TV IR remote variables
irPulse
remoteCode
index
value
' -----[ Main Routine ]----------------------------------------------------
' Replace this DO...LOOP with your own code.
DO
LOOP
' -----[ Subroutine - Get_Ir_Remote_Code ]---------------------------------
DEBUG "Enter a value: ", CR
GOSUB Get_Multi_Digit_Value
DEBUG "The value is: ", DEC value, CR, CR
Save the program after you have fully tested it.
PIN
PIN
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
This program also supports keypad entry of
9
4
11
16
17
18
19
21
Word
Byte
Nib
Word
' Single-digit remote variables
' Stores multi-digit value

Related parts for 28139