from machine import Pin
from time import sleep
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)
a.on()
f.on()
g.on()
c.on()
d.on()
sleep(2)
a.off()
f.off()
g.off()
c.off()
d.off()
f.on()
g.on()
b.on()
c.on()
sleep(2)
f.off()
g.off()
b.off()
c.off()
a.on()
b.on()
c.on()
d.on()
g.on()
sleep(2)
a.off()
b.off()
c.off()
d.off()
g.off()
a.on()
b.on()
g.on()
e.on()
d.on()
sleep(2)
a.off()
b.off()
g.off()
e.off()
d.off()
b.on()
c.on()
sleep(2)