from machine import Pin
from utime import sleep
led=Pin(4,Pin.OUT)
dot=0.25
dash=1
gap=0.5
while True:
for i in range(0,3):
led.value(1)
sleep(dot)
led.value(0)
sleep(dot)
sleep(gap)
for i in range(0,3):
led.value(1)
sleep(dash)
led.value(0)
sleep(dash)
sleep(gap)
for i in range(0,3):
led.value(1)
sleep(dot)
led.value(0)
sleep(dot)
# sleep(gap)
sleep(2)