initial commit

This commit is contained in:
2026-09-25 10:48:51 +10:00
commit b90beea8ae
1020 changed files with 131665 additions and 0 deletions
@@ -0,0 +1,40 @@
/*!
* @file WatchdogESP8266.h
*
* Support for ESP8266 WDT and low-power sleep modes.
*
* Adafruit invests time and resources providing this open source code,
* please support Adafruit and open-source hardware by purchasing
* products from Adafruit!
*
* Written by Brent Rubell for Adafruit Industries.
*
* MIT License, all text here must be included in any redistribution.
*
*/
#ifndef WATCHDOGESP8266_H_
#define WATCHDOGESP8266_H_
// #include "esp_sleep.h"
// #include "esp_task_wdt.h"
#include "Esp.h"
/**************************************************************************/
/*!
@brief Class that contains functions for interacting with the
ESP8266's WDT and low-power sleep functions.
*/
/**************************************************************************/
class WatchdogESP8266 {
public:
WatchdogESP8266() : _wdto(-1){};
int enable(int maxPeriodMS = 0);
void reset();
void disable();
int sleep(int maxPeriodMS = 0);
private:
int _wdto;
};
#endif // WATCHDOGESP8266_H