So I'm trying to make a code using millis().
When a button is pressed and held, a led stars blinking, when released the led stops.
Im having a problem where the code isn't reading the button instantly, so there is the same delay, as the led blinking delay in my button reading.
I have been tring to solve this thing for too long now.
Could some legend give me a hint about the mechanism? Do I need to use arrays or what?
thanks