So i am currently interafacing with STM disc board. And below is my code.
import pyb
from pyb import ADC
from pyb import Pin
#Initalising ADC
pin = pyb.Pin('PA0',Pin.IN,Pin.PULL_DOWN)
adc = pyb.ADC(pin)
while True:
print(adc.read())
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 ?