You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
helgibbons
changed the title
ADC(29) needs to be ADC(Pin.29) in recent versions of MicroPython
ADC(pin) needs to be ADC(machine.Pin(pin)) in recent versions of MicroPython
Jul 2, 2024
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 micropython/micropython#10947
The text was updated successfully, but these errors were encountered: