From a3f506984527f194881948ffb1f09ccef894603c Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Sat, 4 Jan 2025 15:35:48 +0100 Subject: [PATCH] 2025-01-0400 --- platformio.ini | 26 ++++++++++++++++++++------ src/main.cpp | 4 ++-- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/platformio.ini b/platformio.ini index be11233..a4fa7ac 100644 --- a/platformio.ini +++ b/platformio.ini @@ -6,6 +6,11 @@ default_envs = cyd platform = espressif32 board = esp32dev framework = arduino +monitor_speed = 115200 +monitor_filters = esp32_exception_decoder, time +upload_speed = 921600 +board_build.partitions=min_spiffs.csv + lib_deps = bodmer/TFT_eSPI@^2.5.33 nitek/XPT2046_Bitbang_Slim @ 2.0.0 @@ -22,11 +27,6 @@ lib_deps = FS SPI - -monitor_speed = 115200 -monitor_filters = esp32_exception_decoder, time -upload_speed = 921600 -board_build.partitions=min_spiffs.csv build_flags = -DUSER_SETUP_LOADED -DUSE_HSPI_PORT @@ -55,10 +55,24 @@ build_flags = build_flags = ${env.build_flags} -DILI9341_2_DRIVER + -DSTASSID=\"FRITZ!Box7362SL\" + -DSTAPSK=\"BorisundEva2007\" [env:cyd2usb] build_flags = ${env.build_flags} -DST7789_DRIVER -DTFT_RGB_ORDER=TFT_BGR - -DTFT_INVERSION_OFF \ No newline at end of file + -DTFT_INVERSION_OFF + -DSTASSID=\"FRITZ!Box7362SL\" + -DSTAPSK=\"BorisundEva2007\" + +[env:cydboris] +build_flags = + ${env.build_flags} + -DILI9341_2_DRIVER + -DSTASSID=\"FRITZ!Box7362SL\" + -DSTAPSK=\"BorisundEva2007\" + -DGATEWAY=\"192.168.2.1\" + -DDNS=\"192.168.2.1\" + -DKMYIP=\"192.168.2.41\" diff --git a/src/main.cpp b/src/main.cpp index be6b6b5..663b37b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,8 +11,8 @@ //#include // Replace with your network credentials -const char* ssid = "MagentaWLAN-RGDO"; -const char* password = "93329248424922704583"; +const char* ssid = STASSID; +const char* password = STAPSK; const char* NTP_SERVER = "de.pool.ntp.org"; const char* TZ_INFO = "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00"; // enter your time zone (https://remotemonitoringsystems.ca/time-zone-abbreviations.php)