mirror of
https://github.com/esphome/esphome.git
synced 2026-05-25 18:47:56 +08:00
15 lines
229 B
YAML
15 lines
229 B
YAML
uart:
|
|
- id: uart_id
|
|
tx_pin: PA23
|
|
rx_pin: PA18
|
|
baud_rate: 9600
|
|
data_bits: 8
|
|
parity: NONE
|
|
stop_bits: 1
|
|
|
|
switch:
|
|
- platform: uart
|
|
name: "UART Switch"
|
|
uart_id: uart_id
|
|
data: [0x01, 0x02, 0x03]
|