From 0d56db984970d897ab94f459b8bd7be55de967b0 Mon Sep 17 00:00:00 2001 From: Sleeper85 Date: Sun, 1 Nov 2026 23:00:48 +0100 Subject: [PATCH] Board: Waveshare Touch-LCD backlight pin conflict (ESPHome 2026.10) ESPHome 2026.10 fails to validate the Waveshare ESP32-S3 Touch-LCD 4.3, 4.3B and 7 boards with "Pin 2 is used in multiple places". The mipi_rgb models now set ch422g pin 2 (backlight) as a default enable_pin, and the board already uses that pin for backlight_output, which drives the backlight light used by the LVGL designs to turn the screen off and on. - Override enable_pin to leave out pin 2, so the backlight stays under light control: pin 6 only on the 7 board, none on the 4.3 and 4.3B. - This matches what esphome/esphome#21605 will do automatically. The override can be removed once min_version includes that change. --- packages/board/board_ESP32-S3_WS-Touch-LCD-4.3.yaml | 8 ++++++-- packages/board/board_ESP32-S3_WS-Touch-LCD-4.3B.yaml | 8 ++++++-- packages/board/board_ESP32-S3_WS-Touch-LCD-7.yaml | 10 ++++++++-- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3.yaml b/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3.yaml index 5dd51ae..36081bb 100644 --- a/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3.yaml +++ b/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.2.2 +# Updated : 2026.11.1 +# Version : 1.2.3 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -170,5 +170,9 @@ display: - platform: mipi_rgb id: my_display model: ESP32-S3-TOUCH-LCD-4.3 + # The model drives ch422g pin 2 (backlight) as enable_pin, which conflicts with backlight_output. + # No enable pin so the backlight stays under light control. + # Can be removed once min_version includes https://github.com/esphome/esphome/pull/21605 + enable_pin: [] update_interval: never auto_clear_enabled: false diff --git a/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3B.yaml b/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3B.yaml index db66956..86f152c 100644 --- a/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3B.yaml +++ b/packages/board/board_ESP32-S3_WS-Touch-LCD-4.3B.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.2.2 +# Updated : 2026.11.1 +# Version : 1.2.3 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -146,5 +146,9 @@ display: - platform: mipi_rgb id: my_display model: ESP32-S3-TOUCH-LCD-4.3 + # The model drives ch422g pin 2 (backlight) as enable_pin, which conflicts with backlight_output. + # No enable pin so the backlight stays under light control. + # Can be removed once min_version includes https://github.com/esphome/esphome/pull/21605 + enable_pin: [] update_interval: never auto_clear_enabled: false diff --git a/packages/board/board_ESP32-S3_WS-Touch-LCD-7.yaml b/packages/board/board_ESP32-S3_WS-Touch-LCD-7.yaml index d3fc409..ae4011b 100644 --- a/packages/board/board_ESP32-S3_WS-Touch-LCD-7.yaml +++ b/packages/board/board_ESP32-S3_WS-Touch-LCD-7.yaml @@ -1,5 +1,5 @@ -# Updated : 2026.07.30 -# Version : 1.2.2 +# Updated : 2026.11.1 +# Version : 1.2.3 # GitHub : https://github.com/Sleeper85/esphome-yambms # YamBMS ( Yet another multi-BMS Merging Solution ) @@ -171,5 +171,11 @@ display: - platform: mipi_rgb id: my_display model: ESP32-S3-TOUCH-LCD-7-800X480 + # The model drives ch422g pin 2 (backlight) as enable_pin, which conflicts with backlight_output. + # Keep pin 6 only so the backlight stays under light control. + # Can be removed once min_version includes https://github.com/esphome/esphome/pull/21605 + enable_pin: + - ch422g: ch422g_hub + number: 6 update_interval: never auto_clear_enabled: false