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
@Kucmasz this depends on hardware external to the RP2040 (ADC_AVDD). The datasheet plainly states that the ADC is 12-bit.
In practice there are often voltage dividers and other signal conditioning circuitry that would go from some application signal to the ADC input, so it doesn't seem that useful to have #define macros for this because:
#define is horrible
everything ADC related in firmware is application specific
Activity
vkottler commentedon Oct 29, 2023
@Kucmasz this depends on hardware external to the RP2040 (
ADC_AVDD). The datasheet plainly states that the ADC is 12-bit.In practice there are often voltage dividers and other signal conditioning circuitry that would go from some application signal to the ADC input, so it doesn't seem that useful to have
#definemacros for this because:#defineis horrible