Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Make UART allow Pin #266

Open
MATTYGILO opened this issue Nov 18, 2022 · 2 comments
Open

Make UART allow Pin #266

MATTYGILO opened this issue Nov 18, 2022 · 2 comments

Comments

@MATTYGILO
Copy link

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
@BEMNETADEFIS
Copy link

BEMNETADEFIS commented Nov 19, 2022 via email

@nickzoic
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants