Topic: [SOLVED] Is there any way to "delay()" (or equivalent) within an interrupt? (Read 2544 times)previous topic - next topic

for (int x = 4; x >= 1; x--){ delay(1000); Serial.print(x); }Are you sure you don't want to use a long (or maybe a long long) for your index variable? After all, it does need to count all the way up to 4.

wballum

for (int x = 4; x >= 1; x--){ delay(1000); Serial.print(x); }Are you sure you don't want to use a long (or maybe a long long) for your index variable? After all, it does need to count all the way up to 4.

I assume you were trying to be funny or make fun of me to drive a point. Either way is this your point?