Add i2c_id to CH422G and touchscreen configurations for improved I2C management
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user