Why delay() Blocks Everything
See how pausing stops your board from reacting.
The Easy Pause
The delay function pauses your sketch for a set number of milliseconds. It is the simplest way to slow things down and make a blink visible.
delay(1000);What 1000 Means
delay(1000) waits one full second, since the value is in milliseconds. So delay(500) is half a second and delay(2000) is two seconds.
All lessons in this course
- int, float, bool on Arduino
- Why delay() Blocks Everything
- Blink Without delay Using millis
- Run Two Things at Once