Is there a way for example to get only the current baudrate and not a tuple? of all the settings?
Code: Select all
>>> uart = UART(0, 115200)
Code: Select all
UART(0, baudrate=115200, bits=8, parity=None, stop=1, rxbuf=15, timeout=10, timeout_char=10)
EDIT: For example, in Lua I would do this:
Code: Select all
baud, databits, parity, stopbits = uart.getconfig(0)