I am using RPi.GPIO Raspberry Pi GPIO library.
I know how to set an output to high or low, but i need to set it as high impedance.
GPIO.output(PIN, GPIO.HIGH) # or GPIO.LOW
Is there a way to set the output as "high impedance", something like:
GPIO.output(PIN, GPIO.FLOAT)
so that the output is floating and constrained by surrounding circuitry only? (like the drain or collector of a MOS or BJT)?
A possible way would be switch the pin mode to input and set pull up/down resistors to no pullup or pull down, is this the only way, or there is a better solution?
libgpiod
. – 0andriylibgpiod
is hosted on kernel.org. Linux kernel provides a tons of ABIs, and many tools either as examples (tools/gpio/) or ready-to-go (tools/perf/). kernel.org hosts the official libraries and tools for some of ABIs. – 0andriy