In the “setup” part of the sketch (only run one time), all initialization for the standard program is executed. The configuration as mentioned in the declaration part is checked and initialized, the watchdog pin 13 is defined and the timer chain is initialized. It is also possible to execute some application specific actions.

Click here for a pdf of the setup part of the sketch.