From 1deefaff87e7ab316b6f014ae758f1368a2fbe02 Mon Sep 17 00:00:00 2001 From: George <509474+giannoug@users.noreply.github.com> Date: Fri, 7 Aug 2026 07:28:12 +0000 Subject: [PATCH] fix(esp32): identify LilyGo T5 S3 ePaper Pro targets --- src/platform/esp32/architecture.h | 2 ++ variants/esp32s3/t5s3_epaper/platformio.ini | 22 +++++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/platform/esp32/architecture.h b/src/platform/esp32/architecture.h index 4cc4461cf41..b1579379c28 100644 --- a/src/platform/esp32/architecture.h +++ b/src/platform/esp32/architecture.h @@ -212,6 +212,8 @@ #define HW_VENDOR meshtastic_HardwareModel_M5STACK_CARDPUTER_ADV #elif defined(MESHNOLOGY_W10) #define HW_VENDOR meshtastic_HardwareModel_MESHNOLOGY_W10 +#elif defined(T5_S3_EPAPER_PRO) +#define HW_VENDOR meshtastic_HardwareModel_T5_S3_EPAPER_PRO #else #define HW_VENDOR meshtastic_HardwareModel_PRIVATE_HW #endif diff --git a/variants/esp32s3/t5s3_epaper/platformio.ini b/variants/esp32s3/t5s3_epaper/platformio.ini index d4ba0015869..f4674197c82 100644 --- a/variants/esp32s3/t5s3_epaper/platformio.ini +++ b/variants/esp32s3/t5s3_epaper/platformio.ini @@ -3,13 +3,21 @@ extends = esp32s3_base board = t5-epaper-s3 board_build.partitions = default_16MB.csv upload_protocol = esptool +custom_meshtastic_hw_model = 123 +custom_meshtastic_hw_model_slug = T5_S3_EPAPER_PRO +custom_meshtastic_architecture = esp32-s3 +custom_meshtastic_actively_supported = false +custom_meshtastic_support_level = 1 +custom_meshtastic_images = t5s3_epaper.svg +custom_meshtastic_tags = LilyGo +custom_meshtastic_requires_dfu = true +custom_meshtastic_partition_scheme = 16MB build_flags = -fno-strict-aliasing ${esp32s3_base.build_flags} -I variants/esp32s3/t5s3_epaper -D T5_S3_EPAPER_PRO -D USE_EINK -D USE_EINK_PARALLELDISPLAY - -D PRIVATE_HW -D TOUCH_THRESHOLD_X=40 -D TOUCH_THRESHOLD_Y=40 -D TIME_LONG_PRESS=500 @@ -37,7 +45,11 @@ custom_sdkconfig = [env:t5s3_epaper_inkhud] extends = t5s3_epaper_base, inkhud -board_level = extra +board_level = release +custom_meshtastic_display_name = LilyGo T5 E-paper S3 Pro V2 InkHUD +custom_meshtastic_key = t5s3_epaper_inkhud +custom_meshtastic_variant = H752-01 (V2) InkHUD +custom_meshtastic_has_ink_hud = true build_flags = ${t5s3_epaper_base.build_flags} ${inkhud.build_flags} @@ -54,6 +66,9 @@ lib_deps = [env:t5s3-epaper-v1] ; H752 extends = t5s3_epaper_base board_level = release +custom_meshtastic_display_name = LilyGo T5 E-paper S3 Pro V1 +custom_meshtastic_key = t5s3-epaper-v1 +custom_meshtastic_variant = H752 (V1) build_flags = ${t5s3_epaper_base.build_flags} -D T5_S3_EPAPER_PRO_V1 @@ -62,6 +77,9 @@ build_flags = [env:t5s3-epaper-v2] ; H752-01 extends = t5s3_epaper_base board_level = release +custom_meshtastic_display_name = LilyGo T5 E-paper S3 Pro V2 +custom_meshtastic_key = t5s3-epaper-v2 +custom_meshtastic_variant = H752-01 (V2) build_flags = ${t5s3_epaper_base.build_flags} -D T5_S3_EPAPER_PRO_V2