Grumpy is right.
Learn how to program in a non blocking way and the rest will come.
This is how you blink without using delay.
if ((millis()-timing)>1000) {
//Toggle LED
timing=millis();
}
Yes, I know it fails after 50days but it's up to you to find out why ![]()