So i am currently interafacing with STM disc board. And below is my code.
from pyb import ADC
from pyb import Pin
pin = pyb.Pin('PA0',Pin.IN,Pin.PULL_DOWN)
adc = pyb.ADC(pin)
So it gives me max value around 3500. But as per my my ADC is 12 bit resolution, it should give 4095 as max. value .
Do anyone have any idea why its not giving me max ADC value ?