From 5745c4ecf22aac1af28491528ed195dbbc33aa71 Mon Sep 17 00:00:00 2001 From: m1nl Date: Thu, 24 Apr 2025 00:40:27 +0200 Subject: [PATCH] switch heltec_v3 variant to esp-idf sdk with power management enabled --- variants/heltec_v3/platformio.ini | 6 ++++-- variants/heltec_v3/variant.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/variants/heltec_v3/platformio.ini b/variants/heltec_v3/platformio.ini index 4be96b019..9bdb81301 100644 --- a/variants/heltec_v3/platformio.ini +++ b/variants/heltec_v3/platformio.ini @@ -1,8 +1,10 @@ -[env:heltec-v3] +[env:heltec-v3] extends = esp32s3_base +platform_packages = + platformio/framework-arduinoespressif32 @ https://github.com/m1nl/arduino-esp32/archive/refs/tags/2.0.17+1685ef30.tar.gz ; enable PM support in ESP-IDF board = heltec_wifi_lora_32_V3 board_check = true board_build.partitions = default_8MB.csv -build_flags = +build_flags = ${esp32s3_base.build_flags} -D HELTEC_V3 -I variants/heltec_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_v3/variant.h b/variants/heltec_v3/variant.h index 4f1d91db8..710a7bfdb 100644 --- a/variants/heltec_v3/variant.h +++ b/variants/heltec_v3/variant.h @@ -1,5 +1,7 @@ #define LED_PIN LED +#define HAS_32768HZ + #define USE_SSD1306 // Heltec_v3 has a SSD1306 display #define RESET_OLED RST_OLED