Play music through the stamp?
NerdicusMaximus
Posts: 11
I want to use a stamp to control which music track I play through a speaker.
This is a Halloween thing, so it would probably generate a random number and play that track number when a certain pin goes high.
Does anyone know of a way to do this?
B
This is a Halloween thing, so it would probably generate a random number and play that track number when a certain pin goes high.
Does anyone know of a way to do this?
B
Comments
' {$STAMP BS2px}
'RXd=pin 0
t VAR Nib
DEBUG "Please Wait"
'*******************[noparse][[/noparse]INITIALISE]******************
SEROUT 0,,[noparse][[/noparse]"ipa",CR]
PAUSE 2000
SEROUT 0,84,[noparse][[/noparse]"scs",CR]
PAUSE 2000
t=1
DEBUG CLS,"playing ",DEC t
SEROUT 0,84,[noparse][[/noparse]$1D,$20,DEC t,".mp3",$0D]
PAUSE 5000
SEROUT 0,16468,[noparse][[/noparse]$20,CR]
PAUSE 2000
DEBUG "end"
my track is on a thumbdrive... called 1.mp3
It should play, right?
B