Yep, that is getting stuck if you don't disable the digital input.
I guess more of the context is here: RP2350: hardware issue: stuck inputs #9541
https://github.com/adafruit/circuitpython/issues/9541
As I understand, you are trying to use the digital input as an analog comparator, and the 1M resistor acts like a analog bleeder resistor. I would call this an analogue application, not a normal (recommended/intended) way to use a digital input. Even without this bug, is not a good way to measure capacitance due to non-linearity discharge through a resistor (better with a constant current source/drain), also due dispersion of the Schmidt trigger levels (better with an analog comparator and a voltage reference).
In this case, one can use ADC, that should work with digital input disabled.
I guess more of the context is here: RP2350: hardware issue: stuck inputs #9541
https://github.com/adafruit/circuitpython/issues/9541
As I understand, you are trying to use the digital input as an analog comparator, and the 1M resistor acts like a analog bleeder resistor. I would call this an analogue application, not a normal (recommended/intended) way to use a digital input. Even without this bug, is not a good way to measure capacitance due to non-linearity discharge through a resistor (better with a constant current source/drain), also due dispersion of the Schmidt trigger levels (better with an analog comparator and a voltage reference).
In this case, one can use ADC, that should work with digital input disabled.
Statistics: Posted by gmx — Tue Sep 17, 2024 4:06 am