From 774eb1a226c95980354bdc5e2ef1d1700eaf5d6e Mon Sep 17 00:00:00 2001 From: m1nl Date: Tue, 3 Jun 2025 09:33:50 +0200 Subject: [PATCH] use framework with dynamic light sleep for heltec_wsl_v3 --- variants/heltec_wsl_v3/platformio.ini | 6 ++++-- variants/heltec_wsl_v3/variant.h | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/variants/heltec_wsl_v3/platformio.ini b/variants/heltec_wsl_v3/platformio.ini index bc3e6ada1..0bfd262f2 100644 --- a/variants/heltec_wsl_v3/platformio.ini +++ b/variants/heltec_wsl_v3/platformio.ini @@ -1,8 +1,10 @@ -[env:heltec-wsl-v3] +[env:heltec-wsl-v3] extends = esp32s3_base +platform_packages = + platformio/framework-arduinoespressif32 @ https://github.com/m1nl/arduino-esp32/archive/refs/tags/2.0.17+5ae9873e.tar.gz ; disable WiFi IRAM optimizations in ESP-IDF board = heltec_wifi_lora_32_V3 board_build.partitions = default_8MB.csv # Temporary until espressif creates a release with this new target -build_flags = +build_flags = ${esp32s3_base.build_flags} -D HELTEC_WSL_V3 -I variants/heltec_wsl_v3 -D GPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely. diff --git a/variants/heltec_wsl_v3/variant.h b/variants/heltec_wsl_v3/variant.h index c103b9172..2a64f0bc6 100644 --- a/variants/heltec_wsl_v3/variant.h +++ b/variants/heltec_wsl_v3/variant.h @@ -1,3 +1,5 @@ +#define HAS_32768HZ + #define I2C_SCL SCL #define I2C_SDA SDA @@ -33,4 +35,4 @@ #define SX126X_RESET LORA_RESET #define SX126X_DIO2_AS_RF_SWITCH -#define SX126X_DIO3_TCXO_VOLTAGE 1.8 \ No newline at end of file +#define SX126X_DIO3_TCXO_VOLTAGE 1.8