HI guys trying to blink 4 led in a sequence (random) on button ON I am using Delay(), but i came across this:
"While it is easy to create a blinking LED with the delay() function, and many sketches use short delays for such tasks as switch debouncing, the use of delay() in a sketch has significant drawbacks. No other reading of sensors, mathematical calculations, or pin manipulation can go on during the delay function, so in effect, it brings most other activity to a halt"
it is bringing it to a halt or till it ends cycle. I am looking to interrrupt the sequence as soon as i turn button OFF.
any help please on how the code could be simply.