mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-04-16 20:29:01 +02:00
Document UART stop_bits (#396)
This commit is contained in:
parent
18ee49dc20
commit
bd31e98e90
@ -34,6 +34,7 @@ to some pins on your board and the baud rate set to 9600.
|
||||
tx_pin: D1
|
||||
rx_pin: D2
|
||||
baud_rate: 9600
|
||||
stop_bits: 2
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
|
@ -38,6 +38,7 @@ to some pins on your board and the baud rate set to 9600.
|
||||
rx_pin: D1
|
||||
rx_pin: D2
|
||||
baud_rate: 9600
|
||||
stop_bits: 2
|
||||
|
||||
sensor:
|
||||
- platform: pzemac
|
||||
|
@ -27,6 +27,7 @@ to some pins on your board and the baud rate set to 9600.
|
||||
rx_pin: D1
|
||||
rx_pin: D2
|
||||
baud_rate: 9600
|
||||
stop_bits: 2
|
||||
|
||||
sensor:
|
||||
- platform: pzemdc
|
||||
|
@ -46,6 +46,7 @@ Configuration variables:
|
||||
- **baud_rate** (**Required**, int): The baud rate of the UART bus.
|
||||
- **tx_pin** (*Optional*, :ref:`config-pin`): The pin to send data to from the ESP's perspective.
|
||||
- **rx_pin** (*Optional*, :ref:`config-pin`): The pin to receive data on from the ESP's perspective.
|
||||
- **stop_bits** (*Optional*, int): The number of stop bits to send. Options: 1, 2. Defaults to 1.
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID for this UART hub if you need multiple UART hubs.
|
||||
|
||||
.. _uart-hardware_uarts:
|
||||
|
Loading…
Reference in New Issue
Block a user