1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

UART component support added for host platform (#6912)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Pavlo Dudnytskyi <pdudnytskyi@astrata.eu>
This commit is contained in:
Pavlo Dudnytskyi
2024-07-11 03:30:55 +02:00
committed by GitHub
parent 2873c6bbaf
commit aa8c963c50
4 changed files with 410 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
esphome:
on_boot:
then:
- uart.write: 'Hello World'
- uart.write: [0x00, 0x20, 0x42]
uart:
- id: uart_uart
port: "/dev/ttyS0"
baud_rate: 9600
data_bits: 8
parity: EVEN
stop_bits: 2