Skip to content

Strange problem with pin in use after power on. #2590

Open
@ThomasAtBBTF

Description

@ThomasAtBBTF

I am using all pins on the ItsyBitsy M4 and would need more...
So I tried to do this:
BTSelect = digitalio.DigitalInOut(microcontroller.pin.PA30)
And was very happy that I can also use PA30 & PA31 (the SWCLK & SWDIO pins on the "other end" of the ItsyBitsy)

But now when I am using them after powering on a runtime error happens on the first boot.
If I the do a reset all works fine!

Is there a way to "Deinit" all pins at startup of a script?
Can I somehow deinit a pin even thou I hold no reference to the pin?

Thomas

Note: this happens on CP4 and also the same on CP Beta 5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions