from machine import Pin
from utime import sleep

Dot = 0.25
Dash = 1.0
Gap = 0.2
ON = 1
OFF = 0

LED = Pin(0, Pin.OUT)

while True:
    # for "H"
    LED.value(ON)
    sleep(Dot)
    LED.value(OFF)
    sleep(Gap)
    LED.value(ON)
    sleep(Dot)
    LED.value(OFF)
    sleep(Gap)
    LED.value(ON)
    sleep(Dot)
    LED.value(OFF)
    sleep(Gap)
    LED.value(ON)
    sleep(Dot)
    LED.value(OFF)
    print("H")
    sleep(2)
  

    # for "R"
    LED.value(ON)
    sleep(Dot)
    LED.value(OFF)
    sleep(Gap)
    LED.value(ON)
    sleep(Dash)
    LED.value(OFF)
    sleep(Gap)
    LED.value(ON)
    sleep(Dot)
    LED.value(OFF)
    print("R")
    sleep(2)

    # for "I"
    for i in range(0, 2):
        LED.value(ON)
        sleep(Dot)
        LED.value(OFF)
        sleep(Gap)
    print("I")
    sleep(2)


    # for "T"
    LED.value(ON)
    sleep(Dash)
    LED.value(OFF)
    print("T")
    sleep(2)

    # for "I"
    for i in range(0, 2):
        LED.value(ON)
        sleep(Dot)
        LED.value(OFF)
        sleep(Gap)
    print("I")
    sleep(2)

    # for "K"
    LED.value(ON)
    sleep(Dash)
    LED.value(OFF)
    sleep(Gap)
    LED.value(ON)
    sleep(Dot)
    LED.value(OFF)
    sleep(Gap)
    LED.value(ON)
    sleep(Dash)
    LED.value(OFF)
    sleep(Gap)
    print("K")

    sleep(4)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT