up_fadeup:
for LED = b.3 to b.7
for on_time = 0 to 3000 step 100
pulsout LED,on_time
off_time = 3000 - on_time
pauseus off_time
next on_time
high LED
next LED
pause 5000
up_fadedown:
for LED = b.3 to b.7
for on_time = 0 to 3000 step 100
pulsout LED ,on_time
off_time = 3000 - on_time
pauseus off_time
next on_time
low LED
next LED
pause 5000
goto main
This was the pulsout code I used
Code:up_fadeup: for LED = b.3 to b.7 for on_time = 0 to 3000 step 100 pulsout LED,on_time off_time = 3000 - on_time pauseus off_time next on_time high LED next LED pause 5000 up_fadedown: for LED = b.3 to b.7 for on_time = 0 to 3000 step 100 pulsout LED ,on_time off_time = 3000 - on_time pauseus off_time next on_time low LED next LED pause 5000 goto main
Unfortunately, I will actually be running 5 ledsIf not, then because you are only using four channels then you could use the pwmout command on a PICAXE that has four channels such as the PICAXE-14M2.
Use two PICAXE chips.Unfortunately, I will actually be running 5 leds