hi Guys
my coding exp is quite small
i am with a neopixel strip on a nano
i want to do a function that while a button is pressed to do certain type of flashes, i got this done with delays but its not really what i am looking for, i want it to follow a sequence and as soon the button is off to immediatly finishi the sequence
would be like
if
button is high
do
led1 on
if after 10 seconds button is still high
do
led2 on
if its still on after another 10 secondos
do
led 3 on
if button is low
stop all leds to off.
i want to do this with mills or other function that does not stop the program
thank you