27297 Parallax Inc, 27297 Datasheet - Page 74

KIT STAMPWORKS WITH BS2-IC

27297

Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet

Specifications of 27297

Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
27297SQ
Manufacturer:
NS
Quantity:
4
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 27297