What are the functions of setup(), loop() and delay()?

setup() sets things up that have to be done once and then don’t happen again.

loop() contains the instructions that get repeated over and over until the board is turned off.


delay() pauses the program for the amount of time (in milliseconds) as specified.

Related Questions