from machine import Pin
from time import sleep

def display(x):
  a.value(int(x[0])),b.value(int(x[1])),c.value(int(x[2])),d.value(int(x[3])),e.value(int(x[4])),f.value(int(x[5])),g.value(int(x[6]))
  sleep(0.5)
  
a=Pin(2,Pin.OUT)
b=Pin(4,Pin.OUT)
c=Pin(18,Pin.OUT)
d=Pin(27,Pin.OUT)
e=Pin(14,Pin.OUT)
f=Pin(13,Pin.OUT)
g=Pin(12,Pin.OUT)

while(1):
  display("1111110")#0
  display("0110000")#1
  display("1101101")#2
  display("1111001")#3
  display("0110011")#4
  display("1011011")#5
  display("1011111")#6
  display("1110000")#7
  display("1111111")#8
  display("1111011")#9