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

Make UART allow Pin #266

Open
Open

Description

@MATTYGILO

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

Activity

  1. BEMNETADEFIS commented on Nov 19, 2022

    @BEMNETADEFIS
  2. nickzoic commented on Nov 21, 2022

    @nickzoic
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions