The problem could be delay(500);
That stops the micro dead in it's tracks until the delay has passed.
Don't use delay();
Time to study the "BlinkWithoutDelay" sketch in the examples of the IDE, to manage timings without using delay().
Leo..
The problem could be delay(500);
That stops the micro dead in it's tracks until the delay has passed.
Don't use delay();
Time to study the "BlinkWithoutDelay" sketch in the examples of the IDE, to manage timings without using delay().
Leo..