Lesson 15 - Using delay() for Basic Timing
Learn what delay() does, how millisecond timing works, and when delay() is useful for beginner sketches.
Lesson Template
Learn delay(), millis(), and timing without blocking.
This lesson introduces the core ideas behind Time Functions.
unsigned long now = millis();
if (now - lastBlink >= 500) {
lastBlink = now;
}Learn what delay() does, how millisecond timing works, and when delay() is useful for beginner sketches.
Learn microsecond-level delay timing for short pulses, fast signals, and precision-focused beginner examples.
Learn non-blocking timing with millis(), including elapsed-time checks, responsive loops, and overflow-safe patterns.
Learn micros()-based non-blocking microsecond timing, interval checks, and overflow-safe timing patterns.