|
1 | 1 | /**************************************************************************************************************************** |
2 | 2 | defines.h |
3 | | - For ESP32 boards |
| 3 | + For ESP32 using WiFi along with BlueTooth BLE |
4 | 4 |
|
5 | 5 | Blynk_Async_ESP32_BT_WF is a library, using AsyncWebServer instead of (ESP8266)WebServer for inclusion of both ESP32 |
6 | 6 | Blynk BT/BLE and WiFi libraries. Then select either one or both at runtime. |
7 | 7 | |
8 | 8 | Based on and modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases |
9 | 9 | Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF |
10 | 10 | Licensed under MIT license |
11 | | -
|
12 | | - Version: 1.0.6 |
| 11 | + |
| 12 | + Version: 1.1.0 |
13 | 13 |
|
14 | 14 | Version Modified By Date Comments |
15 | 15 | ------- ----------- ---------- ----------- |
16 | 16 | 1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer. |
17 | | - Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6. |
| 17 | + Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6. |
| 18 | + 1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples |
18 | 19 | *****************************************************************************************************************************/ |
19 | 20 |
|
20 | 21 | #ifndef defines_h |
21 | 22 | #define defines_h |
22 | 23 |
|
23 | 24 | #ifndef ESP32 |
24 | | -#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting. |
| 25 | + #error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting. |
25 | 26 | #endif |
26 | 27 |
|
27 | | -#define BLYNK_PRINT Serial |
| 28 | +#define BLYNK_PRINT Serial |
28 | 29 |
|
29 | | -#define ESP32_BLE_WF_DEBUG true |
| 30 | +#define ESP32_BLE_WF_DEBUG true |
30 | 31 |
|
31 | 32 | #define DOUBLERESETDETECTOR_DEBUG true |
32 | 33 | #define BLYNK_WM_DEBUG 3 |
33 | 34 |
|
34 | | -// Not use #define USE_SPIFFS => using EEPROM for configuration data in WiFiManager |
35 | | -// #define USE_SPIFFS false => using EEPROM for configuration data in WiFiManager |
36 | | -// #define USE_SPIFFS true => using SPIFFS for configuration data in WiFiManager |
37 | | -// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WFM.h> |
| 35 | +// Not use #define USE_LITTLEFS and #define USE_SPIFFS => using SPIFFS for configuration data in WiFiManager |
| 36 | +// (USE_LITTLEFS == false) and (USE_SPIFFS == false) => using EEPROM for configuration data in WiFiManager |
| 37 | +// (USE_LITTLEFS == true) and (USE_SPIFFS == false) => using LITTLEFS for configuration data in WiFiManager |
| 38 | +// (USE_LITTLEFS == true) and (USE_SPIFFS == true) => using LITTLEFS for configuration data in WiFiManager |
| 39 | +// (USE_LITTLEFS == false) and (USE_SPIFFS == true) => using SPIFFS for configuration data in WiFiManager |
| 40 | +// Those above #define's must be placed before #include <BlynkSimpleEsp32_WFM.h> |
| 41 | + |
| 42 | +#define USE_LITTLEFS true |
| 43 | +#define USE_SPIFFS false |
38 | 44 |
|
39 | | -#define USE_SPIFFS true |
40 | | -//#define USE_SPIFFS false |
41 | 45 |
|
42 | | -#if (!USE_SPIFFS) |
| 46 | +#if !( USE_SPIFFS || USE_LITTLEFS) |
43 | 47 | // EEPROM_SIZE must be <= 2048 and >= CONFIG_DATA_SIZE (currently 172 bytes) |
44 | 48 | #define EEPROM_SIZE (2 * 1024) |
45 | 49 | // EEPROM_START + CONFIG_DATA_SIZE must be <= EEPROM_SIZE |
|
0 commit comments