i'm new to picaxe and programming, and i was trying some simple code below, (LED on/off 10 times, then three quick flashes) is there a shorter way to write the "flash 3" part ?
thanks in advance, wildbill
symbol countup = b0
symbol Rled = 7
main:
pause 1500
for countup = 1 to 10
high Rled
pause 750
low Rled
pause 750
if b0 = 10 then goto flash3
next countup
goto main
flash3:
pause 1000
high Rled
pause 100
low Rled
pause 100
high Rled
pause 100
low Rled
pause 100
high Rled
pause 100
low Rled
pause 100
goto main
end
 
Edited by - wildbill on 1/10/2006 10:24:22 PM
thanks in advance, wildbill
symbol countup = b0
symbol Rled = 7
main:
pause 1500
for countup = 1 to 10
high Rled
pause 750
low Rled
pause 750
if b0 = 10 then goto flash3
next countup
goto main
flash3:
pause 1000
high Rled
pause 100
low Rled
pause 100
high Rled
pause 100
low Rled
pause 100
high Rled
pause 100
low Rled
pause 100
goto main
end
 
Edited by - wildbill on 1/10/2006 10:24:22 PM