I'm looking for informations relative to the globalfunction setup. I'm understanding the purpose of this function at high level. But I'm seeing strange behavior (behavior that I can't explain) : during program loading on the card some pins act "randomly". Imagine a led or a motor connected to the pins then they switch on/of "randomly". I'm curious and I've made some test : to try to avoid this (for easy usage during testing) I've move my setup code in my loop function but making attention that this code only execute one time and only one. But here, pin are not setted correctly (strangle voltage output taht can set on a LED).
So my questions :
- what is the exact actions done during setup ? and pin positionning mode (Input/output) ;
- how to avoid random action during my code downloading in my Arduino.
Imagine my card with a motor, I don't want my motor act during code load.
Sorry if I ask totally studid question here : I'm only play with the Arduino since a month (and I like it
[Edit] : maybe I've post in the wrong place !!! It'll be better in the Troubleshooting.