From f66f66160d546e0084ac1b67975e8dc08497da1b Mon Sep 17 00:00:00 2001 From: KonradIT Date: Thu, 13 Mar 2025 11:33:39 +0100 Subject: [PATCH] Fix for Heltec Lora V3 (v3.2) variant --- platformio.ini | 24 +++++++++++++++++++++++- src/main.cpp | 4 ++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index dbea0ee..7fb8742 100644 --- a/platformio.ini +++ b/platformio.ini @@ -32,13 +32,35 @@ board_build.f_cpu = 240000000 board_build.filesystem = littlefs lib_deps = ropg/Heltec_ESP32_LoRa_v3@^0.9.1 - ESP Async WebServer + ESP32Async/AsyncTCP + ESP32Async/ESPAsyncWebServer build_flags = -DHELTEC_POWER_BUTTON -DHELTEC -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 +; Heltec WiFi LORA 32 V3 - V3.2 +; display is external now +[env:heltec_wifi_lora_32_V3_2] +platform = espressif32 +board = heltec_wifi_lora_32_V3 +framework = arduino +upload_speed = 921600 +monitor_speed = 115200 +board_build.f_cpu = 240000000 +board_build.filesystem = littlefs +lib_deps = + ropg/Heltec_ESP32_LoRa_v3@^0.9.1 + ESP32Async/AsyncTCP + ESP32Async/ESPAsyncWebServer +build_flags = + -DHELTEC_POWER_BUTTON + -DHELTEC + -DARDUINO_USB_CDC_ON_BOOT=1 + -DARDUINO_USB_MODE=1 + -DHELTEC_WIFI_LORA_32_V3_2 + [env:heltec_wifi_lora_32_V3_lora-TX-scanner] platform = espressif32 board = heltec_wifi_lora_32_V3 diff --git a/src/main.cpp b/src/main.cpp index 8eae9cf..396e18b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1618,6 +1618,10 @@ void setup(void) pinMode(REB_PIN, OUTPUT); heltec_setup(); +#ifdef HELTEC_WIFI_LORA_32_V3_2 + heltec_ve(true); +#endif + if (!initUARTs(config)) { Serial.println("Failed to initialize UARTs");