import machine
from time import sleep
signalPin=27
ADCPin=machine.ADC(signalPin)
while True:
potValue=ADCPin.read_u16()
voltage=(100/65535)*potValue
print(voltage)
sleep(.5)Loading
pi-pico-w
pi-pico-w
import machine
from time import sleep
signalPin=27
ADCPin=machine.ADC(signalPin)
while True:
potValue=ADCPin.read_u16()
voltage=(100/65535)*potValue
print(voltage)
sleep(.5)