Andrei IRL
Senior Member
Hi everyone.
This is probably a very basic question, but howcan i address all pins at once on a PICAXE18 (X i think, 10 year old chip).
I am making a Christmas jumper with 3D printed Christmas trees on it with 9 LEDS each.
I am creating a program that would run them in a couple pf different sequences but its very daunting to be typing HIGH and LOW for each LED.
This is the code i have so far.
Any help to make it an easier process is highly appreciated.
This is probably a very basic question, but howcan i address all pins at once on a PICAXE18 (X i think, 10 year old chip).
I am making a Christmas jumper with 3D printed Christmas trees on it with 9 LEDS each.
I am creating a program that would run them in a couple pf different sequences but its very daunting to be typing HIGH and LOW for each LED.
This is the code i have so far.
Any help to make it an easier process is highly appreciated.
Code:
symbol led9=c.1
symbol led8=c.0
symbol led7=c.7
symbol led6=c.6
symbol led5=b.7
symbol led4=b.6
symbol led3=b.5
symbol led2=b.4
symbol led1=b.3
main:
let b0=5
do b0=b0-1
toggle led9
pause b0
toggle led8
pause b0
toggle led7
pause b0
toggle led6
pause b0
toggle led5
pause b0
toggle led4
pause b0
toggle led3
pause b0
toggle led2
pause b0
toggle led1
pause b0
loop while b0>0
low led9
pause 200
low led8
pause 200
low led7
pause 200
low led6
pause 200
low led5
pause 200
low led4
pause 200
low led3
pause 200
low led2
pause 1000
low led1