MultiResetDetector_Generic is a library for the Arduino AVR, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52, etc. boards to detects a multi reset, within configurable timeout (default 10s) seconds, so that an alternative start-up mode can be used. Example use cases are to allow re-configuration of a device's WiFi / MQTT / Blynk credentials or to count the number of resets within a pre-determined timed.
This library is based on, modified, bug-fixed and improved from
This library can be used to detect a multi reset within a predetermined time to force the program to enter a special operation such as Config Portal, Clear Default Data, etc., using :
EEPROM for AVR, Teensy, STM32F/L/H/G/WB/MP1 boards.
FlashStorage_SAMD library v1.0.0 for SAMD21 and SAMD51 boards (ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit Itsy-Bitsy M4, etc.)
nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense, Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B302_ublox, NINA_B112_ublox, etc.
Adafruit SAMD51 (M4): Metro M4, Grand Central M4, ItsyBitsy M4, Feather M4 Express, Trellis M4, Metro M4 AirLift Lite, MONSTER M4SK Express, Hallowing M4, etc.
Seeeduino: Wio Terminal, Grove UI Wireless
Teensy (4.1, 4.0, 3.6, 3.5, 3,2, 3.1, 3.0, LC)
AVR Mega1280, 2560, ADK.
STM32F/L/H/G/WB/MP1 boards
Nucleo-144
Nucleo-64
Discovery
Generic STM32F0, STM32F1, STM32F2, STM32F3, STM32F4, STM32F7 (with 64+K Flash): x8 and up
STM32L0, STM32L1, STM32L4
STM32G0, STM32G4
STM32H7
STM32WB
STM32MP1
LoRa boards
3-D printer boards
Generic Flight Controllers
Midatronics boards
Releases v1.0.3
Initial coding to support Multiple Reset Detection.
Please add MultiResetDetector_Generic library to Library Manager.
Thanks and Regards.
Features
MultiResetDetector_Generic is a library for the Arduino AVR, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52, etc. boards to detects a multi reset, within configurable timeout (default 10s) seconds, so that an alternative start-up mode can be used. Example use cases are to allow re-configuration of a device's WiFi / MQTT / Blynk credentials or to count the number of resets within a pre-determined timed.
This library is based on, modified, bug-fixed and improved from
Stephen Denne's DoubleResetDetector
ESP_DoubleResetDetector
ESP_MultiResetDetector
DoubleResetDetector_Generic
to add support to multiple-reset detection for AVR, Teensy, SAM DUE, SAMD, STM32, nRF52, etc. boards.
Currently,
DoubleResetDetector
only supports ESP8266 using RTC memory,ESP_DoubleResetDetector
andESP_MultiResetDetector
only ESP8266 and ESP32,DoubleResetDetector_Generic
only for double reset detection.This library can be used to detect a multi reset within a predetermined time to force the program to enter a special operation such as Config Portal, Clear Default Data, etc., using :
FlashStorage_SAMD library v1.0.0
for SAMD21 and SAMD51 boards (ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit Itsy-Bitsy M4, etc.)DueFlashStorage library
for SAM DUEAdafruit's LittleFS/InternalFS
for nRF52Currently supported Boards
This MultiResetDetector_Generic library currently supports these following boards:
nRF52 boards, such as AdaFruit Feather nRF52832, nRF52840 Express, BlueFruit Sense, Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, NINA_B302_ublox, NINA_B112_ublox, etc.
SAM DUE
SAMD21
SAMD51
Teensy (4.1, 4.0, 3.6, 3.5, 3,2, 3.1, 3.0, LC)
AVR Mega1280, 2560, ADK.
STM32F/L/H/G/WB/MP1 boards
Releases v1.0.3