Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Artemiy117
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Artemiy117

    @Artemiy117

    1
    Reputation
    1
    Posts
    225
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Artemiy117 Follow

    Best posts made by Artemiy117

    • RE: Watchdog on 2.0

      wdt.h is included on Arduino IDE.
      This example show how it's work:

      #include <avr/wdt.h>
      
      int counter=0;
      void setup(){
         wdt_disable();
         
          Serial.begin(9600);
        Serial.println("Starting...");
        delay(1000);
       
        wdt_enable(WDTO_8S);
        
      }
      
      void loop(){
        wdt_reset();
        
         Serial.println(counter);
         counter++;
         
         if(counter==5){
            while(true){}
         }
         delay(500);
        
      }```
      posted in General Discussion
      Artemiy117
      Artemiy117

    Latest posts made by Artemiy117

    • RE: Watchdog on 2.0

      wdt.h is included on Arduino IDE.
      This example show how it's work:

      #include <avr/wdt.h>
      
      int counter=0;
      void setup(){
         wdt_disable();
         
          Serial.begin(9600);
        Serial.println("Starting...");
        delay(1000);
       
        wdt_enable(WDTO_8S);
        
      }
      
      void loop(){
        wdt_reset();
        
         Serial.println(counter);
         counter++;
         
         if(counter==5){
            while(true){}
         }
         delay(500);
        
      }```
      posted in General Discussion
      Artemiy117
      Artemiy117