From 2a2c812d7309b03d5b7e0b4f3d8a2e508181c51d Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Mon, 8 May 2023 10:25:01 +0100 Subject: [PATCH] testing on S3 board --- RX_FSK/RX_FSK.ino | 4 +++- RX_FSK/src/Display.cpp | 6 ++++++ platformio.ini | 10 ++++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index f0904cc..2ba858b 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -12,7 +12,9 @@ #include #include #include "esp_heap_caps.h" -#include "soc/rtc_wdt.h" +/////This makes problems on the S3 +////https://github.com/espressif/esp-idf/issues/8038 +/////#include "soc/rtc_wdt.h" #include "src/SX1278FSK.h" #include "src/Sonde.h" diff --git a/RX_FSK/src/Display.cpp b/RX_FSK/src/Display.cpp index ed92aca..c23bff2 100644 --- a/RX_FSK/src/Display.cpp +++ b/RX_FSK/src/Display.cpp @@ -7,6 +7,12 @@ #include "Display.h" #include "Sonde.h" +// Tricks for S3? +// TODO: Check SPI port +#ifndef VSPI +#define VSPI 2 +#endif + int readLine(Stream &stream, char *buffer, int maxlen); extern const char *version_name; diff --git a/platformio.ini b/platformio.ini index ddabecb..7843731 100644 --- a/platformio.ini +++ b/platformio.ini @@ -21,13 +21,15 @@ lib_deps_external = AXP202X_Library stevemarple/MicroNMEA @ ^2.0.5 me-no-dev/ESP Async WebServer @ ^1.2.3 - https://github.com/moononournation/Arduino_GFX#v1.1.5 + https://github.com/moononournation/Arduino_GFX https://github.com/dx168b/async-mqtt-client [env:ttgo-lora32] -platform = https://github.com/platformio/platform-espressif32.git#v3.3.2 +#platform = https://github.com/platformio/platform-espressif32.git#v3.3.2 +platform = https://github.com/platformio/platform-espressif32.git #platform = https://github.com/platformio/platform-espressif32.git#v4.4.0 -board = ttgo-lora32-v1 +#board = ttgo-lora32-v1 +board = heltec_wifi_lora_32_V3 framework = arduino monitor_speed = 115200 lib_deps = @@ -44,5 +46,5 @@ lib_ignore = Time ; - pio run --target=uploadfonts (uploads fonts.bin created during the first pio run) ; Then everything should be "back to normal" ; -extra_scripts = post:scripts/makefontpartition.py +;extra_scripts = post:scripts/makefontpartition.py ;board_build.partitions = partition-fonts.csv