Gramps
Senior Member
I'm missing something. Please help.
LED connected to pin C.4
Sound module gate connected to pin C.1
On start up the LED lights.
When sound is detected, LED goes out.
Why doesn't the code loop?
'sparkfun sound detector module test code
code:
#picaxe 08M2
#no_data
symbol _C4=C.4
poke 56,_C4,$ff
bptr=56
do : high @bptr : Pause 100 Do : Loop : Until pinC.1 = 1 : low @bptrinc : Pause 100 : loop
LED connected to pin C.4
Sound module gate connected to pin C.1
On start up the LED lights.
When sound is detected, LED goes out.
Why doesn't the code loop?
'sparkfun sound detector module test code
code:
#picaxe 08M2
#no_data
symbol _C4=C.4
poke 56,_C4,$ff
bptr=56
do : high @bptr : Pause 100 Do : Loop : Until pinC.1 = 1 : low @bptrinc : Pause 100 : loop
Last edited: