Download presentation
Presentation is loading. Please wait.
Published byAlexandra Manning Modified over 5 years ago
1
Interface ckt for demo Outputs Inputs 330 +5 V PIN 0 10K PIN 4 GND GND
TIP120 1K PIN 1 +9, +12 V GND
2
DEMO PROGRAM '-------------------------------- ' demo.bas '
' Stamp demo program (wkd) start: b2 = ' for button command b4 = ' sound variables b5 = 80 top: high ' red led on loop1: ' check switch if in4 = 1 then loop1
3
action: for b3 = 1 to 5 high ' red led on low ' green led off pause ' wait 0.5 sec low ' red led off high ' green led on pause 500 next b3 low ' both led's off low 1
4
music: sound 2,(b4,20,b4,20,b4,20,b5,100) pause 250 for b3 = 0 to 127 step 10 sound 2,(25,10,b3,10) next b3 pause 500 motor: high ' motor on pause ' wait 2 sec low 3 ' motor off pause 750 finish: sound 2,(120,75,50,75,120,150) goto top ' start all over again
6
Numbering conventions
100 ‘ decimal $64 ‘ hex % ‘ binary N = 15 N = $0F N = % All these are the same
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.