refactor(doorbell-touch): simplify LovyanGFX library setup
This commit is contained in:
19
mise.toml
19
mise.toml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user