27220 Parallax Inc, 27220 Datasheet - Page 74

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
rndVal
swData
dieVal
spinPos
doSpin
' -----[ EEPROM Data ]-----------------------------------------------------
'
'
Digit0
Digit1
Digit2
Digit3
Digit4
Digit5
Digit6
Digit7
Digit8
Digit9
'
'
Bug0
Bug1
Bug2
Bug3
Bug4
Bug5
BugLen
' -----[ Initialization ]--------------------------------------------------
Reset:
' -----[ Program Code ]----------------------------------------------------
Main:
SegsDirs = %01111111
DO
LOOP
GOSUB Tumble_Die
PAUSE 5
' check for button press
BUTTON RollBtn, 0, 255, 5, swData, 1, Show_Die
VAR
VAR
VAR
VAR
VAR
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
DATA
CON
Word
Byte
Nib
Nib
Nib
%00111111
%00000110
%01011011
%01001111
%01100110
%01101101
%01111101
%00000111
%01111111
%01100111
%00000001
%00000010
%00000100
%00001000
%00010000
%00100000
Bug5 - Bug0 + 1
.GFEDCBA
--------
.GFEDCBA
--------
' calc animation length
' random number
' workspace for BUTTON
' new die value
' spinner position
' spinner update control
' digit patterns
' animated "bug" frames
' make outputs for LEDs
' shake the die
' loop pad

Related parts for 27220