mirror of
https://github.com/esphome/esphome.git
synced 2026-05-21 02:01:57 +08:00
24 lines
413 B
YAML
24 lines
413 B
YAML
mcp23016:
|
|
- i2c_id: i2c_bus
|
|
id: mcp23016_hub
|
|
- i2c_id: i2c_bus
|
|
id: mcp23016_hub_int
|
|
address: 0x21
|
|
interrupt_pin: ${interrupt_pin}
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
id: mcp23016_binary_sensor
|
|
pin:
|
|
mcp23016: mcp23016_hub
|
|
number: 0
|
|
mode: INPUT
|
|
|
|
switch:
|
|
- platform: gpio
|
|
id: mcp23016_switch
|
|
pin:
|
|
mcp23016: mcp23016_hub
|
|
number: 1
|
|
mode: OUTPUT
|