27220 Parallax Inc, 27220 Datasheet - Page 125

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
Roulette_Wheel:
Computer_Beeps:
LEDs
Space_Transporter:
DEBUG "Howler -- watch out!!!", CR
FOR idx = 1 TO 4
NEXT
DEBUG "Roulette Wheel", CR
onTime = 5 */ TAdj
note1 = 35 */ FAdj
clickDly = 250
FOR idx = 1 TO 8
NEXT
FOR idx = 1 TO 10
NEXT
FOR idx = 1 TO 20
NEXT
FOR idx = 1 TO 30
NEXT
DEBUG "1950's Sci-Fi Computer", CR
FOR idx = 1 TO 50
NEXT
DEBUG "Space Transporter", CR
onTime = 10 */ TAdj
onTime = 1000 */ TAdj
note1 = 1400 */ FAdj
note2 = 2060 */ FAdj
FREQOUT Speaker, onTime, note1, note2
onTime = 1000 */ TAdj
note1 = 2450 */ FAdj
note2 = 2600 */ FAdj
FREQOUT Speaker, onTime, note1, note2
FREQOUT Speaker, onTime, note1
PAUSE clickDly
clickDly = clickDly */ $00BF
FREQOUT Speaker, onTime, note1
PAUSE clickDly
FREQOUT Speaker, onTime, note1
PAUSE clickDly
clickDly = clickDly */ $010C
FREQOUT Speaker, onTime, note1
PAUSE clickDly
clickDly = clickDly */ $0119
onTime = 50 */ TAdj
RANDOM note1
note1 = (note1 // 2500) */ FAdj
FREQOUT Speaker, onTime, note1
PAUSE 100
' combine 1400 Hz and 2060 Hz
' combine 2450 Hz and 2600 Hz
' onTime for "click"
' frequency for "click"
' delay between clicks
' spin up wheel
' click
' accelerate (speed * 0.75)
' spin stable
' slow down
' decelerate (speed * 1.05)
' slow down and stop
' decelerate (speed * 1.10)
' looks great with randmom
' run about 5 seconds
' create random note
' don't let note go to high
' play it
' short pause between notes

Related parts for 27220