from machine import Pin, ADC
from time import sleep
ADC.width(ADC.WIDTH_12BIT)
aValue = ADC(Pin(32))
aValue.atten(ADC.ATTN_0DB)
print(ADC.ATTN_6DB)
while True:
print(aValue.read())
sleep(0.1)
from machine import Pin, ADC
from time import sleep
ADC.width(ADC.WIDTH_12BIT)
aValue = ADC(Pin(32))
aValue.atten(ADC.ATTN_0DB)
print(ADC.ATTN_6DB)
while True:
print(aValue.read())
sleep(0.1)