Go Down

Topic: Watchdog Arduino Zero (Read 341 times) previous topic - next topic

DArduino86

Hi all!

Is there any library to implement a watchdog on Arduino Zero board?

Thanks

AloyseTech


DArduino86

Hi AloyseTech,

thank you for your reply.

So how should I use it? I mean, I have my setup() and then the loop() 
Code: [Select]


#include <Adafruit_SleepyDog.h>

void setup() {
  // put your setup code here, to run once:
 //Serial, Input, output ..etc
}

void loop()
{
  // put your main code here, to run repeatedly:
 // Watchdog.enable(4000); here?
  //functionA();
  //functionB();
  //...etc

}


Where do I have to put the Watchdog.enable(time); ?
What is the maximum time for the Watchdog?
I'm not familiar with this, and I do not want to mess up everything :-)
Thanks


Go Up