I am using the Nano RP2040 with MicroPython and run the following code:
import machine
import time
p0 = machine.Pin(0, machine.Pin.IN)
while True:
print(p0.value())
time.sleep(0.3)
The Nano has built-in pull-up and pull-down resistors. If I do not specify machine.Pin.PULL_xx, then these built-in resistors are not activated. If they are not activated, then shouldn't the signal received be floating, i.e., shouldn't the environment interfere with the input signal and make the code above print random series of 0s and 1s on the REPL? What actually happens is the REPL prints all 0s.
I read of how input pins are interpreted as high-impedance output and while I suspect this may be the cause, I do not not understand what that means.