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 I/O expander (Waveshare uses it for LCD reset/backlight/touch reset)
|
||||||
ch422g:
|
ch422g:
|
||||||
- id: ch422g_hub
|
- id: ch422g_hub
|
||||||
|
i2c_id: i2c_main
|
||||||
|
|
||||||
# --- Backlight control (CH422G IO2 is common for Waveshare LCD BL) ---
|
# --- Backlight control (CH422G IO2 is common for Waveshare LCD BL) ---
|
||||||
switch:
|
switch:
|
||||||
@@ -87,6 +88,7 @@ display:
|
|||||||
touchscreen:
|
touchscreen:
|
||||||
platform: gt911
|
platform: gt911
|
||||||
id: touch_panel
|
id: touch_panel
|
||||||
|
i2c_id: i2c_main
|
||||||
update_interval: 120ms
|
update_interval: 120ms
|
||||||
reset_pin:
|
reset_pin:
|
||||||
ch422g: ch422g_hub
|
ch422g: ch422g_hub
|
||||||
|
|||||||
Reference in New Issue
Block a user