In some of my projects, I want to reset the arduino ever day, or ever month. Is there any problem in using this function?
void resetArduinoPin2() { // reset pin connected to D2 pin
pinMode(2, OUTPUT);
digitalWrite(2,LOW);
}
I have been testing it for a couple days, and it seems to have no problems. What do you think?
Is there a better way?