Document UART stop_bits (#396)

This commit is contained in:
Otto Winter 2019-11-02 19:10:08 +01:00
parent 18ee49dc20
commit bd31e98e90
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
4 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: