from tm1637 import TM1637
from machine import Pin
from utime import sleep
from random import randint
seg = TM1637(clk=Pin(0), dio=Pin(1))
seg1 = TM1637(clk=Pin(6), dio=Pin(7))
while 1:
i=randint(-999,9999)
seg.number(i)
seg1.number(int(i/10))
sleep(0.4)