Dear all
I would like to used pin 1 and 3 for control 3 difference pulsout but no work. Please help me to rewrite my wrong code : Many thank you.
I would like to used pin 1 and 3 for control 3 difference pulsout but no work. Please help me to rewrite my wrong code : Many thank you.
Code:
# picaxe 08m
do
If pin1=0 and pin3=0 then
gosub sau
If pin1=1 and pin3=0 then
gosub bon
If pin1=1 and pin3=1 then
gosub hai
endif
loop
;///////////////////////////////////
sau:
pulsout 2,180
pause 15
return
'=============================
bon:
pulsout 2,180
pause 23
return
'=============================
hai:
pulsout 2,500
pause 48
return
'///////////////////////////////////