from machine import Pin
from time import sleep
# Update pin mappings according to the new connection
a = Pin(0, Pin.OUT)
b = Pin(1, Pin.OUT)
c = Pin(2, Pin.OUT)
d = Pin(3, Pin.OUT)
e = Pin(4, Pin.OUT)
f = Pin(5, Pin.OUT)
g = Pin(6, Pin.OUT)
while True:
# Display 't'
a.value(0)
b.value(0)
c.value(0)
d.value(1)
e.value(1)
f.value(1)
g.value(1)
sleep(2)
# Display 'y'
a.value(0)
b.value(1)
c.value(1)
d.value(1)
e.value(0)
f.value(1)
g.value(1)
sleep(2)
# Display 'i'
a.value(0)
b.value(0)
c.value(0)
d.value(0)
e.value(1)
f.value(1)
g.value(0)
sleep(2)
# Display 't'
a.value(0)
b.value(0)
c.value(0)
d.value(1)
e.value(1)
f.value(1)
g.value(1)
sleep(2)