refactor(doorbell-touch): simplify LovyanGFX library setup

This commit is contained in:
2026-02-17 01:00:57 -08:00
parent 66b4e75174
commit de45f89f9b

View File

@@ -28,7 +28,6 @@ echo "[OK] TFT_eSPI 2.5.43 vendored + configured"
"""
[tasks.install-libs-s3-43]
description = "Vendor LovyanGFX into vendor/esp32-s3-lcd-43"
run = """
#!/usr/bin/env bash
set -euo pipefail
@@ -43,20 +42,8 @@ else
echo "LovyanGFX already exists, skipping"
fi
# Create library.properties for Arduino CLI
cat > vendor/esp32-s3-lcd-43/LovyanGFX/library.properties << 'EOF'
name=LovyanGFX
version=0.5.0
author=lovyan03
maintainer=lovyan03
sentence=GFX library for ESP32
paragraph=Display and touch driver for ESP32
category=Display
url=https://github.com/lovyan03/LovyanGFX
architectures=esp32
includes=LovyanGFX.hpp
src_core=src
EOF
# Remove any old library.properties (let Arduino detect automatically)
rm -f vendor/esp32-s3-lcd-43/LovyanGFX/library.properties
echo "[OK] LovyanGFX vendored"
"""
@@ -105,7 +92,7 @@ run = """
arduino-cli compile \
--fqbn "esp32:esp32:waveshare_esp32_s3_touch_lcd_43:PSRAM=enabled,FlashSize=16M,USBMode=hwcdc,PartitionScheme=app3M_fat9M_16MB" \
--libraries ./libraries \
--libraries ./vendor/esp32-s3-lcd-43/LovyanGFX \
--libraries ./vendor/esp32-s3-lcd-43/LovyanGFX/src \
--build-property "compiler.cpp.extra_flags=-DDEBUG_MODE -DBOARD_HAS_PSRAM" \
--warnings default \
./boards/esp32-s3-lcd-43