simplified rules Neopixel
Posted: 13 Oct 2022, 02:27
Hi there ,
I have a staircase lighting project, with 3 LEDs per step. I'm trying to simplify the rule: in the current state, I light 1 and 3 then when they go out I light 2, when they go out I light 4 and 6 etc .... but too much line for the rules with my 48 leds
the goal will be to start it with a detector and to stop it with another detector
Thanks in advance
Niblon91
I have a staircase lighting project, with 3 LEDs per step. I'm trying to simplify the rule: in the current state, I light 1 and 3 then when they go out I light 2, when they go out I light 4 and 6 etc .... but too much line for the rules with my 48 leds
Code: Select all
on System#Boot do
timerSet 1,10
endon
On Rules#Timer=1 do
neopixel,1,50,0,0
neopixel,3,50,0,0
delay 2000
neopixel,2,50,0,0
neopixel,1,0,0,0
neopixel,3,0,0,0
delay 2000
neopixel,4,50,0,0
neopixel,6,50,0,0
neopixel,2,0,0,0
delay 2000
neopixel,5,50,0,0
neopixel,4,0,0,0
neopixel,6,0,0,0
delay 2000
neopixel,7,50,0,0
neopixel,9,50,0,0
neopixel,5,0,0,0
delay 2000
neopixel,8,50,0,0
neopixel,7,0,0,0
neopixel,9,0,0,0
delay 2000
neopixel,8,0,0,0
timerSet 1,1
endon
Thanks in advance
Niblon91