From 92371f01da069d3f252de8ad3adbf3905ab7c65f Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Mon, 19 Oct 2020 00:20:49 +0300 Subject: [PATCH] esp32 compiling version --- .vscode/settings.json | 7 ------- include/Consts.h | 2 +- platformio.ini | 38 ++++++++++---------------------------- 3 files changed, 11 insertions(+), 36 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index cc4865fe..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "files.associations": { - "functional": "cpp", - "bitset": "cpp", - "algorithm": "cpp" - } -} \ No newline at end of file diff --git a/include/Consts.h b/include/Consts.h index ad7a1df6..7b43058a 100644 --- a/include/Consts.h +++ b/include/Consts.h @@ -37,7 +37,7 @@ //#define WEBSOCKET_ENABLED //#define LAYOUT_IN_RAM //#define UDP_ENABLED -#define SSDP_ENABLED +//#define SSDP_ENABLED // // Sensors enable/disable diff --git a/platformio.ini b/platformio.ini index 31ac6233..06c14091 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,16 +1,7 @@ -; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples -; https://docs.platformio.org/page/projectconf.html [platformio] -default_envs = esp8266 - +default_envs = esp32 +;============================================================================================================================================= [common_env_data] lib_deps_external = bblanchon/ArduinoJson @5.* @@ -24,7 +15,7 @@ lib_deps_internal = ESP Async WebServer GyverFilters OneWire - +;============================================================================================================================================= [env:esp32] framework = arduino board = esp32dev @@ -32,15 +23,16 @@ platform = https://github.com/platformio/platform-espressif32.git lib_deps = ${common_env_data.lib_deps_external} ${common_env_data.lib_deps_internal} - me-no-dev/ESPAsyncTCP + AsyncTCP madhephaestus/ESP32Servo LITTLEFS luc-github/ESP32SSDP monitor_filters = esp32_exception_decoder -;upload_speed = 921600 +upload_speed = 921600 monitor_speed = 115200 board_build.filesystem = littlefs - +extra_scripts = ./tools/littlefsbuilder.py +;============================================================================================================================================= [env:esp8266_01_1m] framework = arduino board = esp01_1m @@ -56,8 +48,7 @@ monitor_filters = esp8266_exception_decoder upload_speed = 921600 monitor_speed = 115200 board_build.filesystem = littlefs -;board_build.f_cpu = 160000000L - +;============================================================================================================================================= [env:esp8266] framework = arduino board = nodemcuv2 @@ -69,16 +60,7 @@ lib_deps = ESPAsyncUDP EspSoftwareSerial monitor_filters = esp8266_exception_decoder -;upload_speed = 921600 +upload_speed = 921600 monitor_speed = 115200 board_build.filesystem = littlefs -board_build.f_cpu = 160000000L - -; build_type = debug -; build_flags = -; -DDEBUG_ESP_CORE -; -DDEBUG_ESP_WIFI -; -DDEBUG_ESP_HTTP_UPDATE -; -DDEBUG_ESP_UPDATER -; -DDEBUG_ESP_OTA -; -DDEBUG_ESP_OOM +;=============================================================================================================================================