esphome/tests/components/mcp23008/test.esp8266-ard.yaml

24 lines
341 B
YAML
Raw Permalink Normal View History

i2c:
- id: i2c_mcp23008
scl: 5
sda: 4
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