refactor(doorbell-touch): simplify LovyanGFX library setup
This commit is contained in:
@@ -28,7 +28,6 @@ echo "[OK] TFT_eSPI 2.5.43 vendored + configured"
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
[tasks.install-libs-s3-43]
|
[tasks.install-libs-s3-43]
|
||||||
description = "Vendor LovyanGFX into vendor/esp32-s3-lcd-43"
|
|
||||||
run = """
|
run = """
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -43,20 +42,8 @@ else
|
|||||||
echo "LovyanGFX already exists, skipping"
|
echo "LovyanGFX already exists, skipping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create library.properties for Arduino CLI
|
# Remove any old library.properties (let Arduino detect automatically)
|
||||||
cat > vendor/esp32-s3-lcd-43/LovyanGFX/library.properties << 'EOF'
|
rm -f vendor/esp32-s3-lcd-43/LovyanGFX/library.properties
|
||||||
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
|
|
||||||
|
|
||||||
echo "[OK] LovyanGFX vendored"
|
echo "[OK] LovyanGFX vendored"
|
||||||
"""
|
"""
|
||||||
@@ -105,7 +92,7 @@ run = """
|
|||||||
arduino-cli compile \
|
arduino-cli compile \
|
||||||
--fqbn "esp32:esp32:waveshare_esp32_s3_touch_lcd_43:PSRAM=enabled,FlashSize=16M,USBMode=hwcdc,PartitionScheme=app3M_fat9M_16MB" \
|
--fqbn "esp32:esp32:waveshare_esp32_s3_touch_lcd_43:PSRAM=enabled,FlashSize=16M,USBMode=hwcdc,PartitionScheme=app3M_fat9M_16MB" \
|
||||||
--libraries ./libraries \
|
--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" \
|
--build-property "compiler.cpp.extra_flags=-DDEBUG_MODE -DBOARD_HAS_PSRAM" \
|
||||||
--warnings default \
|
--warnings default \
|
||||||
./boards/esp32-s3-lcd-43
|
./boards/esp32-s3-lcd-43
|
||||||
|
|||||||
Reference in New Issue
Block a user