1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-08 14:10:54 +00:00

24 lines
359 B
YAML
Raw Normal View History

i2c:
- id: i2c_mcp23008
scl: ${scl_pin}
sda: ${sda_pin}
mcp23008:
id: mcp23008_hub
binary_sensor:
- platform: gpio
id: mcp23008_binary_sensor
pin:
mcp23xxx: mcp23008_hub
number: 0
mode: INPUT
switch:
- platform: gpio
id: mcp23008_switch
pin:
mcp23xxx: mcp23008_hub
number: 1
mode: OUTPUT