arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.11k stars 7k forks source link

[Library Manager] Please add MultiResetDetector_Generic Library #11116

Closed khoih-prog closed 3 years ago

khoih-prog commented 3 years ago

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

  1. Stephen Denne's DoubleResetDetector
  2. ESP_DoubleResetDetector
  3. ESP_MultiResetDetector
  4. 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 and ESP_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 :

  1. EEPROM for AVR, Teensy, STM32F/L/H/G/WB/MP1 boards.
  2. FlashStorage_SAMD library v1.0.0 for SAMD21 and SAMD51 boards (ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit Itsy-Bitsy M4, etc.)
  3. DueFlashStorage library for SAM DUE
  4. Adafruit's LittleFS/InternalFS for nRF52

Currently supported Boards

This MultiResetDetector_Generic library currently supports these following boards:

  1. 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.

  2. SAM DUE

  3. SAMD21

    • Arduino SAMD21: ZERO, MKRs, NANO_33_IOT, etc.
    • Adafruit SAMD21 (M0): ItsyBitsy M0, Feather M0, Feather M0 Express, Metro M0 Express, Circuit Playground Express, Trinket M0, PIRkey, Hallowing M0, Crickit M0, etc.
    • Seeeduino: LoRaWAN, Zero, Femto M0, XIAO M0, Wio GPS Board, etc.
  4. SAMD51

    • 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
  5. Teensy (4.1, 4.0, 3.6, 3.5, 3,2, 3.1, 3.0, LC)

  6. AVR Mega1280, 2560, ADK.

  7. STM32F/L/H/G/WB/MP1 boards


Releases v1.0.3

  1. Initial coding to support Multiple Reset Detection.
  2. Sync with DoubleResetDetector_Generic v1.0.3
cmaglie commented 3 years ago

Done.