From 8e619a83611a8fd51c00d8b36a77c4d652901778 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Thu, 19 Feb 2026 20:58:44 -0500 Subject: [PATCH] Refactor I2C configuration by consolidating to a single main I2C bus and updating battery sensor to use it --- esphome/ha-remote/ha-remote-1.base.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/esphome/ha-remote/ha-remote-1.base.yaml b/esphome/ha-remote/ha-remote-1.base.yaml index fc1b2f7..9f85cea 100644 --- a/esphome/ha-remote/ha-remote-1.base.yaml +++ b/esphome/ha-remote/ha-remote-1.base.yaml @@ -3,14 +3,10 @@ psram: speed: 80MHz i2c: - - id: i2c_main - sda: 8 - scl: 9 - frequency: 400kHz - - id: i2c_battery - sda: 40 # Verify these pins are free on your board - scl: 41 - frequency: 400kHz + id: i2c_main + sda: 8 + scl: 9 + frequency: 400kHz # CH422G I/O expander (Waveshare uses it for LCD reset/backlight/touch reset) ch422g: @@ -89,7 +85,7 @@ touchscreen: platform: gt911 id: touch_panel i2c_id: i2c_main - update_interval: 120ms + interrupt_pin: 4 reset_pin: ch422g: ch422g_hub number: 1 @@ -141,7 +137,7 @@ font: sensor: - platform: max17043 id: max17048_battery - i2c_id: i2c_battery + i2c_id: i2c_main update_interval: 120s battery_voltage: name: "Remote Battery Voltage"