I need to implement an UART with RX,TX,RTS & CTS and also inverted lines on ESP32.
I have tried the following:
Code: Select all
uart.init(921600, bits=8, stop=1, parity=None, rx=rx, tx=tx, cts=cts, rts=rts, invert=[UART.INV_TX, UART.INV_RX, UART.INV_RTS, UART.INV_CTS])
So, obviously an integer need to assigned to "invert". But, how to invert all lines?TypeError: can't convert list to int
Thank you very much for your help.
Best regards