import machine
import time
from machine import Pin,ADC
pot=ADC(Pin(34))
LED1=Pin(4,Pin.OUT)
LED2=Pin(0,Pin.OUT)
LED3=Pin(2,Pin.OUT)
while True:
potwert=pot.read()
potwert=potwert/4550
potwert=potwert+0.1
LED3.off()
LED1.on()
time.sleep(potwert)
LED1.off()
LED2.on()
time.sleep(potwert)
LED2.off()
LED3.on()
time.sleep(potwert)