That method returns a 16 bits value, so a number between 0 and 65535.
That method returns a 16 bits value, so a number between 0 and 65535.
−
{{ambox|text=Even if the {{fname|read_u16()}} returns a 16 bits values, the effective ADC resolution is still 12 bits. The MicroPython internal will just upscale the ADC value from 0..4095 to returned value 0..65535 by applying a multiplier. The effective reading precision is 3.3V/4095 = 0.000805V (0.8mv) }}
+
{{ambox|text=Even if the {{fname|read_u16()}} returns a 16 bits values, the effective ADC resolution is still 12 bits. The MicroPython internal will just upscale the ADC value from 0..4095 to returned value 0..65535 by applying a multiplier.
+
The effective ADC reading precision is 3.3V/4095 = 0.000805V (0.8mv) }}