import tm1637
from machine import Pin
from time import sleep
tm1 = tm1637.TM1637(clk=Pin(0), dio=Pin(1))
tm2 = tm1637.TM1637(clk=Pin(10), dio=Pin(11))
def display_number(number):
# Send the number to both displays
tm1.number(number)
tm2.number(number)
print(f"{number}")
while 1:
for i in range(10000): # Counting from 0 to 9999
display_number(i) # Display the current number on both displays
sleep(0.5)