28139 Parallax Inc, 28139 Datasheet - Page 32

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
A second
element.
The first time through the
displayed. The second time through,
on.
Your Turn – Storing Values Instead of Characters
You can use the
Capturing the Entire Message
An entire message from the remote has twelve data pulses. Here is how to capture all of
their durations:
FOR index = 0 TO 4
NEXT
Save ArrayExample.bs2 as ArrayExampleYourTurn.bs2.
Change
DEBUG "Type character(", DEC index, ") "
DEBUGIN characters(index)
DEBUG CR
to
DEBUG "Type value - character(", DEC index, ") "
DEBUGIN DEC characters(index)
Change
DEBUG characters(index)
to
DEBUG CR, DEC characters(index)
Run the modified program and enter values (0 to 255). Make sure to press the
Enter key after the last digit in each value you enter.
Verify that the program displays the values you stored in each array element.
DEBUG characters(index)
FOR…NEXT
DEC
modifier to store values instead of characters. Here's how:
loop reads and displays the values of each
FOR…NEXT
loop, the value of
index
is 1, so
characters
index
is 0, so
(1) is displayed, and so
characters
characters
(0) is
array

Related parts for 28139