API Reference
adafruit_pio_uart
PIO implementation of CircuitPython UART API
Author(s): Scott Shawcroft
- class adafruit_pio_uart.UART(tx=None, rx=None, baudrate=9600, bits=8, parity=None, stop=1, timeout=1, cts=None, rts=None)
PIO implementation of CircuitPython UART API.
- class Parity
Parity Enumeration
- property baudrate
Return the UART baudrate.
- deinit()
De-initialize the UART object.
- property in_waiting
Return whether the UART is waiting.
- read(n)
Read and return an array of up to n values from the UART.
- readinto(buf)
Read UART data into buf and return the number of bytes read.
- reset_input_buffer()
Clear the UART input buffer.
- property timeout
Return the UART timeout.
- write(buf)
Write the contents of buf to the UART.