from machine import Pin,ADC
from time import sleep
pot1 = Pin(15,Pin.OUT)
pot = ADC(Pin(pot1))
while True :
potvalue=pot.read()
print("Potvalue is",potvalue)
from machine import Pin,ADC
from time import sleep
pot1 = Pin(15,Pin.OUT)
pot = ADC(Pin(pot1))
while True :
potvalue=pot.read()
print("Potvalue is",potvalue)