28139 Parallax Inc, 28139 Datasheet - Page 36

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
DO
LOOP
How RecordAndDisplayPwm.bs2 Works
The
also uses a nibble variable named
A single
the information to be displayed.
DO
LOOP UNTIL time(0) > 1000
PULSIN 9, 0, time(0)
PULSIN 9, 0, time(1)
PULSIN 9, 0, time(2)
PULSIN 9, 0, time(3)
PULSIN 9, 0, time(4)
PULSIN 9, 0, time(5)
PULSIN 9, 0, time(6)
PULSIN 9, 0, time(7)
PULSIN 9, 0, time(8)
PULSIN 9, 0, time(9)
PULSIN 9, 0, time(10)
PULSIN 9, 0, time(11)
FOR index = 0 TO 11
NEXT
PULSIN 9, 1, time(0)
DEBUG CRSRXY, 0, 4 + index, "time(", DEC index, ")",
time
"PWM MEASUREMENTS", CR,
"Element
"-------
time
index
DEBUG "time ARRAY", CR,
DEBUG
variable declaration creates an array with twelve word elements. The program
CRSRXY, 9, 4 + index, DEC time(index), CLREOL
"PWM MEASUREMENTS", CR,
"Element
"-------
command with lots of text and arguments creates column headings for
Duration, 2-us", CR,
--------------"
VAR
VAR
Duration, 2-us", CR,
--------------"
Word(12)
Nib
index
.
' Beginning of main loop.
' Wait for rest between messages.
' Measure/store data pulses.
' Display 12 pulse measurements.
' Repeat main loop.

Related parts for 28139