I am trying to understand this function on the simples possible setup as attached in the image, using the internal pullup for the input pin. I tried few sketches found online but for some reason, they behaved outside of what I expected, random behavior.
The goal I'm after is simple - if I press the pushbutton it turns the internal (13) LED on, and lets say if I keep it pressed for 3 seconds, the LED starts to flash. How complex is this?
The goal I'm after is simple - if I press the pushbutton it turns the internal (13) LED on, and lets say if I keep it pressed for 3 seconds, the LED starts to flash. How complex is this?