mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +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
21
tests/components/wk2132_spi/common.yaml
Normal file
21
tests/components/wk2132_spi/common.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
spi:
|
||||
id: spi_bus
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
miso_pin: ${miso_pin}
|
||||
|
||||
wk2132_spi:
|
||||
- id: wk2132_spi_id
|
||||
cs_pin: ${cs_pin}
|
||||
spi_id: spi_bus
|
||||
crystal: 11059200
|
||||
data_rate: 1MHz
|
||||
uart:
|
||||
- id: wk2132_spi_id0
|
||||
channel: 0
|
||||
baud_rate: 115200
|
||||
stop_bits: 1
|
||||
parity: none
|
||||
- id: wk2132_spi_id1
|
||||
channel: 1
|
||||
baud_rate: 921600
|
7
tests/components/wk2132_spi/test.esp32-idf.yaml
Normal file
7
tests/components/wk2132_spi/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO18
|
||||
miso_pin: GPIO19
|
||||
mosi_pin: GPIO23
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/wk2132_spi/test.esp32-s3-idf.yaml
Normal file
7
tests/components/wk2132_spi/test.esp32-s3-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO40
|
||||
miso_pin: GPIO41
|
||||
mosi_pin: GPIO6
|
||||
cs_pin: GPIO19
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/wk2132_spi/test.esp32-s3.yaml
Normal file
7
tests/components/wk2132_spi/test.esp32-s3.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO40
|
||||
miso_pin: GPIO41
|
||||
mosi_pin: GPIO6
|
||||
cs_pin: GPIO19
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/wk2132_spi/test.esp32.yaml
Normal file
7
tests/components/wk2132_spi/test.esp32.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO18
|
||||
miso_pin: GPIO19
|
||||
mosi_pin: GPIO23
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user