Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

MicroPython • Re: Possible hardware or MicroPython bug?

$
0
0
I think that's just a reminder of
2.19.2. Function Select
...
Each GPIO can have one function selected at a time. Likewise, each peripheral input (e.g. UART0 RX) should only be
selected on one GPIO at a time. If the same peripheral input is connected to multiple GPIOs, the peripheral sees the
logical OR of these GPIO inputs.
Basically you cannot do this: "if GPIO1 (0B) were made an input and GPIO17 (also 0B) were a PWM output" when having the same function (PWM). It's the peripheral which controls the same direction for all selected pins/pads.
SIO and PIO inputs do not count as they have dedicated input lines, and can always read the lines regardless of the selected function/direction.

Statistics: Posted by gmx — Sun Sep 21, 2025 8:36 pm



Viewing all articles
Browse latest Browse all 8597

Trending Articles