Add i2c_id to CH422G and touchscreen configurations for improved I2C management

This commit is contained in:
Joshua King
2026-02-19 20:31:50 -05:00
parent fc8567b6db
commit 344ed66c36

View File

@@ -15,6 +15,7 @@ i2c:
# CH422G I/O expander (Waveshare uses it for LCD reset/backlight/touch reset)
ch422g:
- id: ch422g_hub
i2c_id: i2c_main
# --- Backlight control (CH422G IO2 is common for Waveshare LCD BL) ---
switch:
@@ -87,6 +88,7 @@ display:
touchscreen:
platform: gt911
id: touch_panel
i2c_id: i2c_main
update_interval: 120ms
reset_pin:
ch422g: ch422g_hub