import time
from machine import Pin
from utime import sleep
time.sleep(0.1) # Wait for USB to become ready
#print("Hello, Pi Pico!")
led1=Pin(1,Pin.OUT)
str="iter is danger zone"
dict={"a":"01","b":"100","c":"1010","d":"100","e":"0","f":"1101","g":"110","h":"0000","i":"00","j":"0111","k":"101","l":"1011","m":"11","n":"10","o":"111","p":"0110","q":"1101","r":"101","s":"000","t":"1","u":"110","v":"1110","w":"011","x":"1001","y":"1011","z":"1100"," ":"0000000"}
for ch in str :
ch1 = dict.get(ch)
for ch2 in ch1 :
if ch2=='0' :
led1.toggle()
sleep(0.25)
print(ch2," ",ch)
led1.toggle()
sleep(1)
if ch2=='1' :
led1.toggle()
sleep(1)
print(ch2," ",ch)
led1.toggle()
led1.toggle()
led1.toggle()