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; up to you, its a free world. This software is part of the standard (no direct need to modify this code). One remark; the baudrate of the serial connection is made in the setup-part. This is one of the statements that -at least by me- is most changed (caused by using e.g. a bluetooth device, serial to USB or a radio connection like the APC220...)
Click here for a pdf of the setup part of the sketch.
INFO: Article just for information. It is not necassery to change the code in Sketch.ino