ADC
ADC copied to clipboard
pinMode issue
From a private message:
Change any:
pinMode(A0, INPUT);topinMode(A0, INPUT_DISABLE); // disable digital keeper resistorsThe former can interfere with linearity.
More importantly, I think you turn interrupts on, which creates problems for low jitter ADC. If a user has interrupts off, they should remain off.