mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Add the WeiKai SPI/I2C UART/IO Expander components to esphome (#5218)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f9ce35c894
commit
f8cdb087fc
20
tests/components/wk2132_i2c/common.yaml
Normal file
20
tests/components/wk2132_i2c/common.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
i2c:
|
||||
id: i2c_bus
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
scan: true
|
||||
frequency: 600kHz
|
||||
|
||||
wk2132_i2c:
|
||||
- id: wk2132_i2c_id
|
||||
address: 0x70
|
||||
i2c_id: i2c_bus
|
||||
uart:
|
||||
- id: wk2132_id_0
|
||||
channel: 0
|
||||
baud_rate: 115200
|
||||
stop_bits: 1
|
||||
parity: none
|
||||
- id: wk2132_id_1
|
||||
channel: 1
|
||||
baud_rate: 19200
|
5
tests/components/wk2132_i2c/test.esp32-idf.yaml
Normal file
5
tests/components/wk2132_i2c/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/wk2132_i2c/test.esp32-s3-idf.yaml
Normal file
5
tests/components/wk2132_i2c/test.esp32-s3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO40
|
||||
sda_pin: GPIO41
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/wk2132_i2c/test.esp32-s3.yaml
Normal file
5
tests/components/wk2132_i2c/test.esp32-s3.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO40
|
||||
sda_pin: GPIO41
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/wk2132_i2c/test.esp32.yaml
Normal file
5
tests/components/wk2132_i2c/test.esp32.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO22
|
||||
sda_pin: GPIO21
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user