From bad513293bc8251696c153c8ee0213753cc0cf6d Mon Sep 17 00:00:00 2001 From: Dave Williams | DitroniX | G8PUO <20687856+DitroniX@users.noreply.github.com> Date: Sat, 13 Jun 2026 08:39:59 +0100 Subject: [PATCH] Updates --- components/TCA6408/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 components/TCA6408/README.md diff --git a/components/TCA6408/README.md b/components/TCA6408/README.md new file mode 100644 index 0000000..e0f6ee1 --- /dev/null +++ b/components/TCA6408/README.md @@ -0,0 +1,33 @@ +# TCA6408 ESPHome Component + +Full-featured custom component for the **TCA6408** 8-bit I²C I/O Expander. + +## Features +- 8 bidirectional GPIO pins +- Hardware polarity inversion (inputs) +- **Interrupt-driven** inputs (active-low) +- Polling fallback +- Cached GPIO expander (efficient) +- Works on ESP32 (incl. C5), ESP8266, etc. + +## Installation + +Copy the `tca6408` folder into your ESPHome project's `custom_components/` directory. + +## Basic Configuration + +```yaml +i2c: + sda: GPIO4 + scl: GPIO5 + scan: true + +custom_components: + - source: + type: local + path: custom_components/tca6408 + +tca6408: + - id: tca6408_hub + address: 0x20 # 0x20–0x27 depending on ADDR pins + interrupt_pin: GPIO6 # Recommended for responsive inputs \ No newline at end of file