from machine import Pin, ACD
from time import sleep_ms

print("\n### iniciando ###\n")

led = Pin(16, Pin.OUT)
pot = ADC(Pin(34))
pot.atten(ADC.ATTN_11DB)
botao = Pin(5,Pin.IN, Pin.PULL UP)
vel =  500

print("Velocidade inicial do Led:{vel} ms")

while True: 
    led.value(1)
    sleep_ms(vel)
    led.value(0)
    sleep_ms(vel)

    if botao.value():
        ValorSensor = pot.read()
        vel = 300 + int((ValorSensor/4095)*1700)
        print("Valor lido:" ValorSensor", nova velocidade:" vel"ms")
    
$abcdeabcde151015202530fghijfghij