mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 07:51:43 +01:00
30 lines
590 B
YAML
30 lines
590 B
YAML
|
spi:
|
||
|
id: spi_bus
|
||
|
clk_pin: ${clk_pin}
|
||
|
mosi_pin: ${mosi_pin}
|
||
|
miso_pin: ${miso_pin}
|
||
|
|
||
|
wk2204_spi:
|
||
|
- id: wk2204_spi_id
|
||
|
cs_pin: ${cs_pin}
|
||
|
spi_id: spi_bus
|
||
|
crystal: 11059200
|
||
|
data_rate: 1MHz
|
||
|
uart:
|
||
|
- id: wk2204_spi_id0
|
||
|
channel: 0
|
||
|
baud_rate: 115200
|
||
|
stop_bits: 1
|
||
|
parity: none
|
||
|
- id: wk2204_spi_id1
|
||
|
channel: 1
|
||
|
baud_rate: 921600
|
||
|
- id: wk2204_spi_id2
|
||
|
channel: 2
|
||
|
baud_rate: 115200
|
||
|
stop_bits: 1
|
||
|
parity: none
|
||
|
- id: wk2204_spi_id3
|
||
|
channel: 3
|
||
|
baud_rate: 921600
|