d76461d774
The two board profiles (5,000 lines each, 87 % the same text) become packages/core.yaml and one file per board under packages/boards/: the hardware, a table of 84 sizes and font sizes, 18 hooks with the lines of C++ only that board adds inside a shared lambda, and the board's own sections. packages/cyd.yaml and packages/guition.yaml keep their names and places (a screen installed from ESP Screens builds as before); home-like-2432s028.yaml and guition-4848s040.yaml become the same entries for a checkout. The firmware stays 0.2.70: the C++ ESPHome generates for each board, through the checkout profile and through the GitHub package route, was compared line by line with the old profiles' (docs/TEST_RESULTS_0284.md). tools/check_packages.py replaces tools/generate_packages.py; tools/profiles.py gives the tests and tools the three files as one; docs/PROFILES.md says how the files fit together and how a board is added. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
47 lines
1.7 KiB
YAML
47 lines
1.7 KiB
YAML
############################################################
|
|
# ESP Screens - a CYD (ESP32-2432S028, "Cheap Yellow Display") built from this checkout:
|
|
# the bench and the manual route (README_EXTENDED.md).
|
|
#
|
|
# The screen is two packages: packages/core.yaml, which every board shares (the LVGL
|
|
# tree, the cards, the scripts, the entities), and packages/boards/cyd-2432s028.yaml
|
|
# with this board's hardware and sizes. docs/PROFILES.md says how the files fit together.
|
|
# A screen installed from ESP Screens builds the same two files over GitHub through
|
|
# packages/cyd.yaml; this file only adds what a build from a checkout needs.
|
|
#
|
|
# What to adapt before flashing: the secrets (api_encryption_key, ota_password, Wi-Fi)
|
|
# in secrets.yaml and, for another CYD variant, the pins and the touch calibration in
|
|
# the board file. Start at README.md; docs/ covers installing, calibrating and releasing.
|
|
############################################################
|
|
substitutions:
|
|
FONT_DIR: "fonts" # the fonts next to this file
|
|
|
|
packages:
|
|
core: !include packages/core.yaml
|
|
board: !include packages/boards/cyd-2432s028.yaml
|
|
|
|
# The components of this checkout; packages/cyd.yaml takes them from GitHub.
|
|
external_components:
|
|
- source:
|
|
type: local
|
|
path: components
|
|
components: [xpt2046, smart_display]
|
|
|
|
api:
|
|
encryption:
|
|
key: !secret api_encryption_key
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: !secret ota_password
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
# Mains-powered panel: no modem sleep, so HA updates and OTA arrive without beacon latency.
|
|
power_save_mode: none
|
|
ap:
|
|
ssid: "Smartdisplay Fallback Hotspot"
|
|
password: !secret ap_password
|
|
|
|
captive_portal:
|