micropython/micropython-esp32

Make UART allow Pin

MATTYGILO opened this issue · 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

I kind of agree with you there @MATTYGILO but please note this repository is no longer active, the ESP32 port has been merged into the main Micropython repo at https://github.com/micropython/micropython