mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
23 lines
341 B
YAML
23 lines
341 B
YAML
i2c:
|
|
- id: i2c_mcp23016
|
|
scl: 5
|
|
sda: 4
|
|
|
|
mcp23016:
|
|
id: mcp23016_hub
|
|
|
|
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
|