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.
The text was updated successfully, but these errors were encountered:
ArduinoCore-samd/cores/arduino/wiring_analog.c
Line 352 in 0fd44a5
The board i'm using is a Grand Central.
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.
The text was updated successfully, but these errors were encountered: