@allObjects ADC looks stopped according to HW registers, it is the configuration of the GPIO pin that makes the difference, I guess even digital read would do same thing as long as the pin ends in same state. Actually the first idea was to read it as digital after reading as analog but that didn't help.
@Wilberforce thanks, didn't think about setting it as output. While open drain is perhaps not same thing as disconnected input, it might actually work as a workaround if set to right value. nrf has both settings disconnect at 1, normal 0 or disconnect at 0, normal 1. I wonder what happens in the circuit before I manage to set the right output value to disconnect it.
© Espruino, powered by microcosm.
Report a problem