micropython-esp32
micropython-esp32 copied to clipboard
Make UART allow Pin
It would be great if UART accepted Pin class instead of integers
>>> UART(1, 9600, timeout=1000, rx=Pin(18), tx=Pin(17))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't convert Pin to int