from machine import Pin
import time
a = Pin(12,Pin.OUT)
b = Pin(13,Pin.OUT)
c = Pin(14,Pin.OUT)
d = Pin(25,Pin.OUT)
e = Pin(26,Pin.OUT)
f = Pin(27,Pin.OUT)
g = Pin(32,Pin.OUT)
h = Pin(33,Pin.OUT)

led_list = [a,b,c,d,e,f,g,h]
number = {
  0:"00000011",
  1:"10011111",
  2:"00100101",
  3:"00001101",
  4:"10011001",
  5:"01001001",
  6:"01000001",
  7:"00011111",
  8:"00000001",
  9:"00001001",
}
def show(zl):
  if number.get(zl):
    i = 0
    for num in number.get(zl):
      if num == "1":
        led_list[i].value(1)
      else:
        led_list[i].value(0)
      i += 1
#for i in range(10):
 # show(i)
  #print(i)
  #time.sleep_ms(500)
show(5)