Open JacobChrist opened 6 years ago
Does it actually change the ADC's reading resolution, or just scale it with bit shifting in post processing?
Looks like it just pads with zero's if you set to resolution higher than the chip can handle and probably truncates if the resolution is lowered. Added issue for compatibility completeness.
Arduino (Zero, Due & MKR Family) has a function that would be useful in chipKIT-core.
analogReadResolution()
Described here:
https://www.arduino.cc/reference/en/language/functions/zero-due-mkr-family/analogreadresolution/