from tm1637 import TM1637 import time SDA = 4 MY1637_COLMNS = 4 CONTRAST = 3 tm = TM1637(SDA, MY1637_COLMNS, CONTRAST) tm.show_str("12:34") time.sleep(5) tm.show_str("5555") time.sleep(5) i = 0 while(True): tm.show_str('%4d' % i) i += 1 if i > 9999: i = 0 time.sleep(1)