mirror of
https://github.com/esphome/esphome.git
synced 2026-01-10 12:10:48 -07:00
Implements support for the TI TCAL6416 16-bit I2C I/O expander with the following features: - 16 GPIO pins (2 banks of 8) - Bidirectional I/O with configurable input/output modes - Support for inverted pins - Compatible with ESP32, ESP8266, and RP2040 platforms - I2C interface with configurable address (default: 0x20) The TCAL6416 provides higher current latched outputs suitable for directly driving LEDs or keypads. It operates at voltages from 1.08V to 3.6V and supports I2C speeds up to 1MHz. Addresses: https://github.com/orgs/esphome/discussions/3233
24 lines
408 B
YAML
24 lines
408 B
YAML
tcal6416:
|
|
- id: tcal6416_hub
|
|
i2c_id: i2c_bus
|
|
address: 0x20
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
id: tcal6416_binary_sensor
|
|
name: TCAL6416 Binary Sensor
|
|
pin:
|
|
tcal6416: tcal6416_hub
|
|
number: 1
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
output:
|
|
- platform: gpio
|
|
id: tcal6416_output
|
|
pin:
|
|
tcal6416: tcal6416_hub
|
|
number: 0
|
|
mode: OUTPUT
|
|
inverted: false
|