void Reversewdt(){ //硬件喂狗,11PIN接MAX824L芯片WDI
if (digitalRead(11) == HIGH)
{
digitalWrite(11, LOW); //低电平
}
else
{
digitalWrite(11, HIGH); //高电平
}
loop增加喂狗调用
void loop() {
......
Reversewdt();//喂狗
}

void Reversewdt(){ //硬件喂狗,11PIN接MAX824L芯片WDI
if (digitalRead(11) == HIGH)
{
digitalWrite(11, LOW); //低电平
}
else
{
digitalWrite(11, HIGH); //高电平
}
loop增加喂狗调用
void loop() {
......
Reversewdt();//喂狗
}