28139 Parallax Inc, 28139 Datasheet - Page 75

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
These are the variables you will need for your subroutines. The
PulsesToByteValue.bs2 was renamed to
Many published PBASIC application examples you will encounter just have a comment,
such as
case, it will be up to you to look at the comments, subroutines, and other parts of the
program and figure out how to make it work. Often there will be a separate program
available for download that demonstrates some of the things you can do with the
application. This main routine has a comment about inserting code, but it also has a
simple
The code block in the
DO…LOOP
First, it's in a subroutine instead of a
subroutine has two
introduced in the last Your Turn section in Activity #1. They adjust the value the
remoteCode
DO…LOOP
' Insert your code here
' -----[ Variables ]---------------------------------------------------
' SONY TV IR remote variables
irPulse
remoteCode
' -----[ Main Routine ]------------------------------------------------
' Replace this DO...LOOP with your own code.
DO
LOOP
from PulsesToByteValue.bs2 (from Activity #1). There are two differences.
GOSUB Get_Ir_Remote_Code
DEBUG CLS, "Remote code: ", DEC remoteCode
PAUSE 100
variable stores so that it matches any keypad digit that gets pressed.
that allows you to test it.
IF…THEN
Get_Ir_Remote_Code
VAR
VAR
statements just before the
Word
Byte
, possibly followed by an
irPulse
DO…LOOP
subroutine is mostly the contents of the
.
in the main routine.
RETURN
END
command that were
time
command. In that
variable from
Second, this

Related parts for 28139