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
In analogRead it enables the adc, reads the value then disables the adc. In 10 bit mode this works fine. In 12 bit resolution this approach somehow changes it to 11-bit resolution. The lowest bit is never set. If the adc is left enabled it works correctly.