Simply changed the order of checks. Previously IN was checked first, ignoring the ADC bit, so gpio.modes.IN | gpio.modes.ADC | gpio.modes.PULL_UP
was effectively treated like gpio.modes.IN
.
Simply changed the order of checks. Previously IN was checked first, ignoring the ADC bit, so gpio.modes.IN | gpio.modes.ADC | gpio.modes.PULL_UP
was effectively treated like gpio.modes.IN
.