micropython-esp32 icon indicating copy to clipboard operation
micropython-esp32 copied to clipboard

Make UART allow Pin

Open MATTYGILO opened this issue 2 years ago • 2 comments

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

MATTYGILO avatar Nov 18 '22 13:11 MATTYGILO