122-32000 Parallax Inc, 122-32000 Datasheet - Page 136

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Example Object: Blinker2.spin
{{ Blinker2.spin }}
CON
OBJ
PUB Main
{Toggle pins at different rates, simultaneously}
PUB NextObject : Index
{Scan LED objects and return index of next available LED object.
Page 136 · Propeller Manual v1.0
Scanning continues until one is available.}
_CLKMODE = XTAL1 + PLL4X
_XINFREQ = 5_000_000
MAXLEDS = 6
LED[6] : "Output"
dira[16..23]~~
LED[NextObject].Start(16, 250,
LED[NextObject].Start(17, 500,
LED[NextObject].Start(18, 50, 300)
LED[NextObject].Start(19, 500, 40)
LED[NextObject].Start(20, 29, 300)
LED[NextObject].Start(21, 104, 250)
LED[NextObject].Start(22, 63, 200)
LED[NextObject].Start(23, 33, 160)
LED[0].Start(20, 1000, 0)
repeat
repeat
while Index == MAXLEDS
repeat Index from 0 to MAXLEDS-1
if not LED[Index].Active
quit
'Number of LED objects to use
'Set to ext low-speed crystal, 4x PLL
'Frequency on XIN pin is 5 MHz
0)
0)
'Set pins to outputs
'Blink LEDs
'<-Postponed
'<-Postponed
'Restart object 0
'Loop endlessly

Related parts for 122-32000