so i am currently programming with Picaxe for my computer engineering class in high school. I currently have the code shown below to create a sort of tornado kind of effect but it is set to 1 speed. I am trying to make it so each time it returns to main and lowers each pause time for example by 50 so the tornado goes faster and faster each time it returns back to main. I know i need to use a decrement loop but i have no clue how to stick it in this code. Any help would be great. Thanks!
http://www.picaxe.com/BASIC-Commands/Program-Flow-Control/for/ - If i am correct i should be using the decrement loop from that, but no clue how to use it.
main:
high b.4 'Turns on b.4 LED'
pause 200 'LED Stays on for 200ms'
low b.4 'Turns off LED'
'No pause for smoother transition of LED's'
high d.1 'Turns on d.1 LED'
pause 150 ' Pause for 150ms'
low d.1,d.2,d.3,d.0 'Turns all other LED's off'
pause 200 'Pause for 200ms'
high d.2 'Turns on d.2 LED'
pause 150 'Pause for 150ms'
low d.1, d.2, d.3, d.0 'Turn off all other LED's'
pause 200 'Pause for 200ms'
high d.3 'Turns on d.3 LED'
pause 150 'Pause for 150ms'
low d.1, d.2, d.3, d.0 'Turns off all other LED's'
pause 200 'Pause for 200ms
high d.0 'Turns on d.0'
pause 150 'Pauses for 150ms'
low d.1, d.2, d.3, d.0 'Turns off all other LED's'
pause 200
return main