Happy thanksgiving everyone!
I've got a situation, and don't have my board available to test it out. In my project, the power to the Arduino (Due) will be supplied through a switch which will be being powered on and off regularly. Through this, there is just one int value which I need to save through the power outages and so I was planning to just set this value using PROGMEM in the setup, rather than having to read from flash every loop.
So my question is again, does void setup() get executed in the case of a power reset?
Also, I'm open to advice if you think there is a better way to save this int value!