Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 7490f52

Browse files
authored
v1.3.0 to support ESP32_S3
### Releases v1.3.0 1. Add support to `ESP32_S3` using ESP32 core v2.0.2+
1 parent d3d9875 commit 7490f52

File tree

7 files changed

+118
-21
lines changed

7 files changed

+118
-21
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1414

1515
Please ensure to specify the following:
1616

17-
* Arduino IDE version (e.g. 1.8.16) or Platform.io version
18-
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.2 or ESP32 v2.0.1)
17+
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18+
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.2 or ESP32 v2.0.2)
1919
* Contextual information (e.g. what you were trying to achieve)
2020
* Simplest possible steps to reproduce
2121
* Anything that might be relevant in your opinion, such as:
@@ -26,10 +26,10 @@ Please ensure to specify the following:
2626
### Example
2727

2828
```
29-
Arduino IDE version: 1.8.16
29+
Arduino IDE version: 1.8.19
3030
ESP8266 Core Version 3.0.2
3131
OS: Ubuntu 20.04 LTS
32-
Linux Inspiron 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
32+
Linux xy-Inspiron-3593 5.4.0-99-generic #112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3333
3434
Context:
3535
I encountered a non-response while trying to press the reset button twice.
@@ -49,3 +49,5 @@ There are usually some outstanding feature requests in the [existing issues list
4949
### Sending Pull Requests
5050

5151
Pull Requests with changes and fixes are also welcome!
52+
53+

README.md

Lines changed: 63 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#Contributing)
77
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/ESP_DoubleResetDetector.svg)](http://github.com/khoih-prog/ESP_DoubleResetDetector/issues)
88

9-
<a href="https://www.buymeacoffee.com/khoihprog6" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
9+
<a href="https://www.buymeacoffee.com/khoihprog6" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 50px !important;width: 181px !important;" ></a>
1010

1111
---
1212
---
@@ -59,6 +59,7 @@
5959
* [Debug Terminal Output Samples](#debug-terminal-output-samples)
6060
* [1. ESP32_FSWebServer_DRD on ESP32_DEV](#1-esp32_fswebserver_drd-on-esp32_dev)
6161
* [2. ConfigOnDoubleReset on ESP32_DEV](#2-configondoublereset-on-esp32_dev)
62+
* [3. ESPAsync_WiFi using LittleFS on ESP32S3_DEV](#3-ESPAsync_WiFi-using-LittleFS-on-ESP32S3_DEV)
6263
* [Libraries using ESP_DoubleResetDetector or DoubleResetDetector_Generic library](#libraries-using-esp_doubleresetdetector-or-doubleresetdetector_generic-library)
6364
* [Debug](#debug)
6465
* [Troubleshooting](#troubleshooting)
@@ -92,7 +93,7 @@ This library can be used to detect a double reset within a predetermined time to
9293

9394
This [**ESP_DoubleResetDetector** library](https://github.com/khoih-prog/ESP_DoubleResetDetector) currently supports these following boards:
9495

95-
1. **ESP32 boards using EEPROM, SPIFFS or LittleFS**.
96+
1. **ESP32, ESP32_C3, ESP32_S2 and ESP32_S3 boards, using EEPROM, SPIFFS or LittleFS**.
9697
2. **ESP8266 boards RTC memory, EEPROM, SPIFFS or LittleFS**
9798

9899
---
@@ -106,6 +107,7 @@ This [**ESP_DoubleResetDetector** library](https://github.com/khoih-prog/ESP_Dou
106107

107108
4. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS with ESP32 core v1.0.5-. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32). **Notice**: This [`LittleFS_esp32 library`](https://github.com/lorol/LITTLEFS) has been integrated to Arduino [ESP32 core v1.0.6+](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS) and you don't need to install it if using ESP32 core v1.0.6+
108109

110+
---
109111
---
110112

111113
## Installation
@@ -124,7 +126,7 @@ The best and easiest way is to use `Arduino Library Manager`. Search for `ESP_Do
124126

125127
1. Install [VS Code](https://code.visualstudio.com/)
126128
2. Install [PlatformIO](https://platformio.org/platformio-ide)
127-
3. Install [**ESP_DoubleResetDetector** library](https://platformio.org/lib/show/11521/ESP_DoubleResetDetector) by using [Library Manager](https://platformio.org/lib/show/11521/ESP_DoubleResetDetector/installation). Search for **ESP_DoubleResetDetector** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
129+
3. Install [**ESP_DoubleResetDetector** library](https://registry.platformio.org/libraries/khoih-prog/ESP_DoubleResetDetector) by using [Library Manager](https://registry.platformio.org/libraries/khoih-prog/ESP_DoubleResetDetector/installation). Search for **ESP_DoubleResetDetector** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
128130
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)
129131

130132
---
@@ -274,8 +276,8 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](https://githu
274276

275277
```cpp
276278
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32_DEV
277-
ESP_WiFiManager Version v1.7.7
278-
ESP_DoubleResetDetector Version v1.2.1
279+
ESP_WiFiManager Version v1.9.0
280+
ESP_DoubleResetDetector Version v1.3.0
279281
FS File: /ConfigSW.json, size: 150B
280282
FS File: /CanadaFlag_1.png, size: 40.25KB
281283
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -340,8 +342,8 @@ This is terminal debug output when running [ConfigOnDoubleReset](https://github.
340342

341343
```
342344
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
343-
ESP_WiFiManager Version v1.7.7
344-
ESP_DoubleResetDetector Version v1.2.1
345+
ESP_WiFiManager Version v1.9.0
346+
ESP_DoubleResetDetector Version v1.3.0
345347
[WM] RFC925 Hostname = ConfigOnDoubleReset
346348
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
347349
Stored: SSID = HueNet1, Pass = 12345678
@@ -384,8 +386,8 @@ load:0x40080400,len:6352
384386
entry 0x400806b8
385387

386388
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
387-
ESP_WiFiManager Version v1.7.7
388-
ESP_DoubleResetDetector Version v1.2.1
389+
ESP_WiFiManager Version v1.9.0
390+
ESP_DoubleResetDetector Version v1.3.0
389391
[WM] RFC925 Hostname = ConfigOnDoubleReset
390392
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
391393
Stored: SSID = HueNet1, Pass = jenniqqs
@@ -410,6 +412,56 @@ Starting configuration portal.
410412
411413
---
412414
415+
#### 3. ESPAsync_WiFi using LittleFS on ESP32S3_DEV
416+
417+
This is terminal debug output when running [ESPAsync_WiFi](https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite/tree/master/examples/ESPAsync_WiFi) on ***ESP32 ESP32S3_DEV.***. Config Portal was requested by DRD to input and save Credentials.
418+
419+
420+
```
421+
Starting ESPAsync_WiFi using LittleFS on ESP32S3_DEV
422+
ESPAsync_WiFiManager_Lite v1.7.0
423+
ESP_DoubleResetDetector v1.3.0
424+
LittleFS Flag read = 0xD0D01234
425+
doubleResetDetected
426+
Saving config file...
427+
Saving config file OK
428+
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=12345678
429+
[WML] SSID1=HueNet2,PW1=12345678
430+
[WML] BName=ESP32_S3
431+
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=12345678
432+
[WML] SSID1=HueNet2,PW1=12345678
433+
[WML] BName=ESP32_S3
434+
[WML] WiFi networks found:
435+
[WML] 1: HueNet, -20dB
436+
[WML] 2: HueNetTek, -32dB
437+
[WML] 3: HueNet1, -39dB
438+
[WML] 4: HueNet2, -54dB
439+
[WML] 5: DECO-5655, -72dB
440+
[WML] 6: Guest5655, -72dB
441+
[WML] 7: rogers786, -76dB
442+
[WML] 8: AT_301_WLREL6325F_f66d, -76dB
443+
[WML] 10: Rogers 786, -78dB
444+
[WML] 11: BELL042, -80dB
445+
[WML] 12: WirelessMississauga, -82dB
446+
[WML] 13: SmartRG-02a2, -87dB
447+
[WML] 14: Jasmine, -87dB
448+
[WML] 15: Access, -89dB
449+
[WML] 16: Jessie, -90dB
450+
[WML]
451+
stConf:SSID=ESP_E1A1DF7C,PW=MyESP_E1A1DF7C
452+
[WML] IP=192.168.4.1,ch=10
453+
F
454+
Your stored Credentials :
455+
Blynk Server1 = account.duckdns.org
456+
Token1 = token1
457+
Blynk Server2 = account.ddns.net
458+
Token2 = token2
459+
Port = 8080
460+
MQTT Server = mqtt.duckdns.org
461+
```
462+
463+
---
464+
413465
### Libraries using ESP_DoubleResetDetector or DoubleResetDetector_Generic library
414466
415467
You can also see how [`ESP_DoubleResetDetector`](https://github.com/khoih-prog/ESP_DoubleResetDetector) and [`DoubleResetDetector_Generic`](https://github.com/khoih-prog/DoubleResetDetector_Generic) are applied in many other libraries, such as:
@@ -474,6 +526,8 @@ Submit issues to: [ESP_DoubleResetDetector issues](https://github.com/khoih-prog
474526

475527
1. For ESP32 and ESP8266 (EEPROM, SPIFFS and LittleFS).
476528
2. Similar features for Arduino (UNO, Mega, SAM DUE, SAMD21/SAMD51, nRF52, STM32, Teensy, etc.). Look at [**DoubleResetDetector_Generic**](https://github.com/khoih-prog/DoubleResetDetector_Generic)
529+
3. Add support to `ESP32_C3`, `ESP32_S2`
530+
4. Add support to `ESP32_S3` using ESP32 core v2.0.2+
477531

478532

479533
---

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v1.3.0](#releases-v130)
1516
* [Releases v1.2.1](#releases-v121)
1617
* [Releases v1.2.0](#releases-v120)
1718
* [Releases v1.1.2](#releases-v112)
@@ -26,6 +27,10 @@
2627

2728
## Changelog
2829

30+
### Releases v1.3.0
31+
32+
1. Add support to `ESP32_S3` using ESP32 core v2.0.2+
33+
2934
### Releases v1.2.1
3035

3136
1. Fix compile error for ESP32 core v1.0.5-

keywords.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,36 @@ DoubleResetDetector
1313
detectDoubleReset KEYWORD2
1414
loop KEYWORD2
1515
stop KEYWORD2
16+
1617
#######################################
1718
# Instances (KEYWORD2)
1819
#######################################
1920

2021
#######################################
2122
# Constants (LITERAL1)
2223
#######################################
24+
25+
ESP_DOUBLE_RESET_DETECTOR_VERSION LITERAL1
26+
ESP_DOUBLERESETDETECTOR_VERSION LITERAL1
27+
28+
ESP_DOUBLE_RESET_DETECTOR_VERSION_MAJOR LITERAL1
29+
ESP_DOUBLE_RESET_DETECTOR_VERSION_MINOR LITERAL1
30+
ESP_DOUBLE_RESET_DETECTOR_VERSION_PATCH LITERAL1
31+
ESP_DOUBLE_RESET_DETECTOR_VERSION_INT LITERAL1
32+
33+
FLAG_DATA_SIZE LITERAL1
34+
EEPROM_SIZE LITERAL1
35+
EEPROM_START LITERAL1
36+
37+
ESP_DRD_USE_LITTLEFS LITERAL1
38+
ESP_DRD_USE_SPIFFS LITERAL1
39+
FileFS LITERAL1
40+
FS_Name LITERAL1
41+
42+
DOUBLERESETDETECTOR_DEBUG LITERAL1
43+
44+
DOUBLERESETDETECTOR_FLAG_SET LITERAL1
45+
DOUBLERESETDETECTOR_FLAG_CLEAR LITERAL1
46+
47+
DRD_FILENAME LITERAL1
48+

library.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "ESP_DoubleResetDetector",
3-
"version": "1.2.1",
4-
"keywords": "rtc,eeprom,littlefs,spiffs,reset,data,esp32,esp8266,double-reset,detector",
5-
"description": "Library to detect a double reset within a predetermined time, using RTC Memory, EEPROM, LittleFS or SPIFFS for ESP8266 and ESP32",
3+
"version": "1.3.0",
4+
"keywords": "rtc, eeprom, littlefs, spiffs, reset, data, esp32, esp32-c3, esp32-s2, esp32-s3, esp8266, double-reset, detector, double-reset-detector",
5+
"description": "Library to detect a double reset within a predetermined time, using RTC Memory, EEPROM, LittleFS or SPIFFS for ESP8266 and ESP32. An alternative start-up mode can be used. One example use is to allow re-configuration of device WiFi credentials. Now supporting ESP32_C3, ESP32_S2 ans ESP32_S3",
66
"authors":
77
{
88
"name": "Khoi Hoang",

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name=ESP_DoubleResetDetector
2-
version=1.2.1
2+
version=1.3.0
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <[email protected]>
55
license=MIT
66
sentence=Library to detect a double reset within a predetermined time, using RTC Memory, EEPROM, LittleFS or SPIFFS for ESP8266 and ESP32
7-
paragraph=An alternative start-up mode can be used. One example use is to allow re-configuration of device WiFi credentials.
8-
category=Device,Control
7+
paragraph=An alternative start-up mode can be used. One example use is to allow re-configuration of device WiFi credentials. Now supporting ESP32_C3, ESP32_S2 ans ESP32_S3
8+
category=Device Control
99
url=https://github.com/khoih-prog/ESP_DoubleResetDetector
1010
architectures=esp8266,esp32
1111
includes=ESP_DoubleResetDetector.h

src/ESP_DoubleResetDetector.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
Built by Khoi Hoang https://github.com/khoih-prog/ESP_DoubleResetDetector
1111
Licensed under MIT license
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -22,6 +22,7 @@
2222
1.1.2 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
2323
1.2.0 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
2424
1.2.1 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
25+
1.3.0 K Hoang 10/02/2022 Add support to new ESP32-S3
2526
*****************************************************************************************************************************/
2627

2728
#pragma once
@@ -35,7 +36,16 @@
3536
#include <WProgram.h>
3637
#endif
3738

38-
#define ESP_DOUBLE_RESET_DETECTOR_VERSION "ESP_DoubleResetDetector v1.2.1"
39+
#ifndef ESP_DOUBLE_RESET_DETECTOR_VERSION
40+
#define ESP_DOUBLE_RESET_DETECTOR_VERSION "ESP_DoubleResetDetector v1.3.0"
41+
42+
#define ESP_DOUBLE_RESET_DETECTOR_VERSION_MAJOR 1
43+
#define ESP_DOUBLE_RESET_DETECTOR_VERSION_MINOR 3
44+
#define ESP_DOUBLE_RESET_DETECTOR_VERSION_PATCH 0
45+
46+
#define ESP_DOUBLE_RESET_DETECTOR_VERSION_INT 1003000
47+
#endif
48+
3949
#define ESP_DOUBLERESETDETECTOR_VERSION ESP_DOUBLE_RESET_DETECTOR_VERSION
4050

4151
//#define ESP_DRD_USE_EEPROM false

0 commit comments

Comments
 (0)