mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
CH422G support (#7356)
This commit is contained in:
committed by
GitHub
parent
3a7aabb2eb
commit
6490fc9c62
20
tests/components/ch422g/common.yaml
Normal file
20
tests/components/ch422g/common.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
ch422g:
|
||||
- id: ch422g_hub
|
||||
address: 0x24
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: ch422g_input
|
||||
name: CH422G Binary Sensor
|
||||
pin:
|
||||
ch422g: ch422g_hub
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
- platform: gpio
|
||||
id: ch422g_output
|
||||
pin:
|
||||
ch422g: ch422g_hub
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: false
|
6
tests/components/ch422g/test.esp32-ard.yaml
Normal file
6
tests/components/ch422g/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ch422g
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
<<: !include common.yaml
|
6
tests/components/ch422g/test.esp32-c3-ard.yaml
Normal file
6
tests/components/ch422g/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ch422g
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
<<: !include common.yaml
|
6
tests/components/ch422g/test.esp32-c3-idf.yaml
Normal file
6
tests/components/ch422g/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ch422g
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
<<: !include common.yaml
|
6
tests/components/ch422g/test.esp32-idf.yaml
Normal file
6
tests/components/ch422g/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ch422g
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
<<: !include common.yaml
|
6
tests/components/ch422g/test.esp8266-ard.yaml
Normal file
6
tests/components/ch422g/test.esp8266-ard.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ch422g
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
<<: !include common.yaml
|
6
tests/components/ch422g/test.rp2040-ard.yaml
Normal file
6
tests/components/ch422g/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ch422g
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user