Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.11 KB

uart.rst

File metadata and controls

37 lines (29 loc) · 1.11 KB

UART Button

The uart button platform allows you to send a pre-defined sequence of bytes on a UART bus </components/uart> when triggered.

# Example configuration entry
button:
  - platform: uart
    name: "UART String Output"
    data: 'DataToSend'
  - platform: uart
    name: "UART Bytes Output"
    data: [0xDE, 0xAD, 0xBE, 0xEF]

Configuration variables:

  • id (Optional, config-id): Manually specify the ID used for code generation.
  • name (Optional, string): The name for the button.
  • data (Required, string or list of bytes): The data to send via UART. Either an ASCII string or a list of bytes.
  • uart_id (Optional, config-id): Manually specify the ID of the UART hub.
  • All other options from Button <config-button>.

See Also

  • /components/uart
  • uart/button/uart_button.h
  • Edit