27220 Parallax Inc, 27220 Datasheet - Page 63

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
' -----[ EEPROM Data ]-----------------------------------------------------
SeqA
SeqB
SeqC
SeqD
SeqE
AMax
BMax
CMax
DMax
' -----[ Initialization ]--------------------------------------------------
Reset:
' -----[ Program Code ]----------------------------------------------------
Main:
Switch_Check:
Show:
' -----[ Subroutines ]-----------------------------------------------------
Read_Speed:
ModeA:
LightsDirs = %00111111
GOSUB Read_Speed
delay = (rawSpd - LoSpeed) */ Scale + 50
PAUSE delay
BUTTON LtMode, 0, 255, 0, btnVar, 0, Show
mode = mode + 1 // 5
ON mode GOSUB ModeA, ModeB, ModeC, ModeD, ModeE
GOTO Main
HIGH Speed
PAUSE 1
RCTIME Speed, 1, rawSpd
RETURN
offset = offset + 1 // AMax
DATA
DATA
DATA
DATA
DATA
DATA
DATA
CON
CON
CON
CON
%000001, %000010, %000100, %001000, %010000
%100000
%100000, %010000, %001000, %000100, %000010
%000001, %000010, %000100, %001000, %010000
%000000, %001100, %010010, %100001
%100100, %010010, %001001
%0
SeqB - SeqA
SeqC - SeqB
SeqD - SeqC
SeqE - SeqD
' calculate length
' make outputs
' read speed pot
' calc delay (50-1000 ms)
' wait between patterns
' new mode?
' yes, update mode var
' charge cap
'
' read the Pot
' update offset (0 - 5)
for 1 millisecond

Related parts for 27220