Open helgibbons opened 3 days ago
When using high ADC pin numbers, you now need to init ADC(machine.Pin(29)) instead of ADC(29), for example.
ADC(machine.Pin(29))
ADC(29)
As per: https://forums.pimoroni.com/t/pico-lipo-not-reading-battery-voltage/25060/
More info/discussion at https://github.com/micropython/micropython/issues/10947
I think this might be fixed at the MicroPython level now: https://github.com/micropython/micropython/commit/2b8de7436bbdb54da99bf6bdb79359876fd3bc1d
When using high ADC pin numbers, you now need to init
ADC(machine.Pin(29))
instead ofADC(29)
, for example.As per: https://forums.pimoroni.com/t/pico-lipo-not-reading-battery-voltage/25060/
More info/discussion at https://github.com/micropython/micropython/issues/10947