What is the difference between Pin.IN and Pin.OPEN_DRAIN?
@BetterAuto When set to Pin.IN, the pin can be used for input only. changing the output value does not affect it's state.
A pin declared as Pin.OPEN_DRAIN can be used for input AND output, but needs an Pull-Up resistor for a high value. When set to high, the output stage does not drive the pin any more, and the input value can be read, if that is driven by the peripheral. It's a of wired or for the low value. This method is used e.g. by I2C.