From a267a645eb8e710f8e2dbb97c0efa9e16553ee30 Mon Sep 17 00:00:00 2001 From: m1nl Date: Sun, 18 May 2025 18:09:57 +0200 Subject: [PATCH] set custom framework for heltec_vision_master_e213 --- variants/heltec_vision_master_e213/platformio.ini | 12 ++++++++---- variants/heltec_vision_master_e213/variant.h | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/variants/heltec_vision_master_e213/platformio.ini b/variants/heltec_vision_master_e213/platformio.ini index 028caaeff..10f5e7700 100644 --- a/variants/heltec_vision_master_e213/platformio.ini +++ b/variants/heltec_vision_master_e213/platformio.ini @@ -2,9 +2,11 @@ extends = esp32s3_base board = heltec_vision_master_e213 board_build.partitions = default_8MB.csv -build_flags = +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 +build_flags = ${esp32s3_base.build_flags} - -Ivariants/heltec_vision_master_e213 + -Ivariants/heltec_vision_master_e213 -DHELTEC_VISION_MASTER_E213 -DUSE_EINK -DGXEPD2_DRIVER_0=GxEPD2_213_FC1 @@ -25,10 +27,12 @@ upload_speed = 115200 extends = esp32s3_base, inkhud board = heltec_vision_master_e213 board_build.partitions = default_8MB.csv +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 build_src_filter = ${esp32_base.build_src_filter} ${inkhud.build_src_filter} -build_flags = +build_flags = ${esp32s3_base.build_flags} ${inkhud.build_flags} -I variants/heltec_vision_master_e213 @@ -36,4 +40,4 @@ build_flags = lib_deps = ${inkhud.lib_deps} ; InkHUD libs first, so we get GFXRoot instead of AdafruitGFX ${esp32s3_base.lib_deps} -upload_speed = 921600 \ No newline at end of file +upload_speed = 921600 diff --git a/variants/heltec_vision_master_e213/variant.h b/variants/heltec_vision_master_e213/variant.h index 60f4e00cc..cccd3e0cd 100644 --- a/variants/heltec_vision_master_e213/variant.h +++ b/variants/heltec_vision_master_e213/variant.h @@ -1,4 +1,7 @@ #define LED_PIN 45 // LED is not populated on earliest board variant + +#define HAS_32768HZ + #define BUTTON_PIN 0 #define PIN_BUTTON2 21 // Second built-in button #define ALT_BUTTON_PIN PIN_BUTTON2 // Send the up event