From d3846b1fad931e0bac2c29163b659bad23ae84f8 Mon Sep 17 00:00:00 2001 From: fx2 Date: Wed, 2 Nov 2022 07:47:46 +0100 Subject: [PATCH] no NOKIA-code normal compilation (own task) --- tools/esp8266/app.cpp | 6 +++--- tools/esp8266/platformio.ini | 26 +++++++++++++++++++++----- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/tools/esp8266/app.cpp b/tools/esp8266/app.cpp index 23a696e7..46d00065 100644 --- a/tools/esp8266/app.cpp +++ b/tools/esp8266/app.cpp @@ -11,7 +11,9 @@ #include "app.h" #include +#ifdef ENA_NOKIA #include +#endif //----------------------------------------------------------------------------- @@ -29,10 +31,8 @@ app::app() { mShouldReboot = false; } -#define ENA_NOKIA #ifdef ENA_NOKIA -// 114181866432 -// 114181809192 + U8G2_PCD8544_84X48_1_4W_HW_SPI u8g2(U8G2_R0,5,4,16); void ShowInfoText( const char *txt ) diff --git a/tools/esp8266/platformio.ini b/tools/esp8266/platformio.ini index f3a7bf2e..5812edd4 100644 --- a/tools/esp8266/platformio.ini +++ b/tools/esp8266/platformio.ini @@ -37,7 +37,6 @@ lib_deps = paulstoffregen/Time knolleary/PubSubClient bblanchon/ArduinoJson - olikraus/U8g2 ;esp8266/DNSServer@1.1.0 ;esp8266/EEPROM@^1.0 ;esp8266/ESP8266HTTPUpdateServer@^1.0 @@ -50,7 +49,7 @@ lib_deps = platform = espressif8266 board = esp12e board_build.f_cpu = 80000000L -build_flags = -D RELEASE -DU8X8_NO_HW_I2C +build_flags = -D RELEASE monitor_filters = ;default ; Remove typical terminal control codes from input time ; Add timestamp with milliseconds for each new line @@ -60,7 +59,7 @@ monitor_filters = platform = espressif8266 board = esp12e board_build.f_cpu = 80000000L -build_flags = -DDEBUG_LEVEL=DBG_DEBUG -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial -DU8X8_NO_HW_I2C +build_flags = -DDEBUG_LEVEL=DBG_DEBUG -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial build_type = debug monitor_filters = ;default ; Remove typical terminal control codes from input @@ -72,7 +71,7 @@ platform = espressif8266 board = esp8285 board_build.ldscript = eagle.flash.1m64.ld board_build.f_cpu = 80000000L -build_flags = -D RELEASE -DU8X8_NO_HW_I2C +build_flags = -D RELEASE monitor_filters = ;default ; Remove typical terminal control codes from input time ; Add timestamp with milliseconds for each new line @@ -83,13 +82,30 @@ platform = espressif8266 board = esp8285 board_build.ldscript = eagle.flash.1m64.ld board_build.f_cpu = 80000000L -build_flags = -DDEBUG_LEVEL=DBG_DEBUG -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial -DU8X8_NO_HW_I2C +build_flags = -DDEBUG_LEVEL=DBG_DEBUG -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial build_type = debug monitor_filters = ;default ; Remove typical terminal control codes from input time ; Add timestamp with milliseconds for each new line log2file ; Log data to a file “platformio-device-monitor-*.log” located in the current working directory +[env:esp8266-nokia5110] +platform = espressif8266 +board = esp12e +board_build.f_cpu = 80000000L +build_flags = -D RELEASE -DU8X8_NO_HW_I2C -DENA_NOKIA +monitor_filters = + ;default ; Remove typical terminal control codes from input + time ; Add timestamp with milliseconds for each new line + ;log2file ; Log data to a file “platformio-device-monitor-*.log” located in the current working directory +lib_deps = + https://github.com/yubox-node-org/ESPAsyncWebServer + nrf24/RF24 + paulstoffregen/Time + knolleary/PubSubClient + bblanchon/ArduinoJson + olikraus/U8g2 + [env:esp32-wroom32-release] platform = espressif32 board = lolin_d32