Closed mbe81 closed 1 week ago
This is working as intended. The idea is that code can assume that the ADC returns a 16-bit value in all cases, no matter the underlying resolution of the ADC. This makes code more portable across chips. If you specifically want 12 bits, you can of course shift the result.
I agree this should be better documented.
Thanks for your response! I will close this issue.
According to the datasheet for the Raspberry Pi Pico the ADC has a resolution of 12-bits. However, if I read the value via adc.Get() I get a value of of 16-bits.
This is in conflict with the documentation of ADCConfig:
Or do I miss something? Where can I find the peripheral's default settings?