Update README.md
This commit is contained in:
@@ -3,31 +3,17 @@
|
|||||||
Full-featured custom component for the **TCA6408** 8-bit I²C I/O Expander.
|
Full-featured custom component for the **TCA6408** 8-bit I²C I/O Expander.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- 8 bidirectional GPIO pins
|
- 8 bidirectional GPIO pins
|
||||||
- Hardware polarity inversion (inputs)
|
- Hardware polarity inversion support (inputs)
|
||||||
- **Interrupt-driven** inputs (active-low)
|
- Interrupt-driven inputs (active-low INT pin)
|
||||||
- Polling fallback
|
- Efficient cached GPIO expander
|
||||||
- Cached GPIO expander (efficient)
|
- Polling fallback mode
|
||||||
- Works on ESP32 (incl. C5), ESP8266, etc.
|
- Compatible with ESP32 (including C3/C5/C6), ESP8266, etc.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Copy the `tca6408` folder into your ESPHome project's `custom_components/` directory.
|
1. Download or clone this component into your ESPHome project:
|
||||||
|
```bash
|
||||||
## Basic Configuration
|
mkdir -p custom_components
|
||||||
|
cp -r TCA6408/custom_components/tca6408 custom_components/
|
||||||
```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
|
|
||||||
Reference in New Issue
Block a user