from machine import Pin
from time import sleep
LED14 = Pin(14, Pin.OUT)
LED14.value(1)
while True:
print("Zadajte na kolko bude dioda svietit (s)")
t = int(input())
if t > 1 and t < 10:
LED14.value(0)
sleep(t)
LED14.value(1)
else:
print("Neplatna hodnota")