from machine import Pin
import time
led = Pin(25, Pin.OUT)
on_ms = int(input("Enter ON time (ms): "))
off_ms = int(input("Enter OFF time (ms): "))
while True:
led.on()
time.sleep_ms(on_ms)
led.off()
time.sleep_ms(off_ms)
from machine import Pin
import time
led = Pin(25, Pin.OUT)
on_ms = int(input("Enter ON time (ms): "))
off_ms = int(input("Enter OFF time (ms): "))
while True:
led.on()
time.sleep_ms(on_ms)
led.off()
time.sleep_ms(off_ms)