mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[pi4ioe5v6408] Add new IO Expander (#8888)
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
22
tests/components/pi4ioe5v6408/common.yaml
Normal file
22
tests/components/pi4ioe5v6408/common.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
i2c:
|
||||
id: i2c_pi4ioe5v6408
|
||||
sda: ${i2c_sda}
|
||||
scl: ${i2c_scl}
|
||||
|
||||
pi4ioe5v6408:
|
||||
id: pi4ioe1
|
||||
address: 0x44
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: switch1
|
||||
pin:
|
||||
pi4ioe5v6408: pi4ioe1
|
||||
number: 0
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: sensor1
|
||||
pin:
|
||||
pi4ioe5v6408: pi4ioe1
|
||||
number: 1
|
||||
5
tests/components/pi4ioe5v6408/test.esp32-ard.yaml
Normal file
5
tests/components/pi4ioe5v6408/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
i2c_sda: GPIO21
|
||||
i2c_scl: GPIO22
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/pi4ioe5v6408/test.esp32-idf.yaml
Normal file
5
tests/components/pi4ioe5v6408/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
i2c_sda: GPIO21
|
||||
i2c_scl: GPIO22
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/pi4ioe5v6408/test.rp2040-ard.yaml
Normal file
5
tests/components/pi4ioe5v6408/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
i2c_sda: GPIO4
|
||||
i2c_scl: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
Reference in New Issue
Block a user