70016 Parallax Inc, 70016 Datasheet - Page 32

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 70016

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
70016SE
Manufacturer:
ST
0
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 70016