from machine import Pin
import tm1637
import time, esp32
tm=tm1637.TM1637(clk=Pin(5),dio=Pin(4))
def tempShow(temp):
tm.temperature(temp)
while 1:
tf=esp32.raw_temperature()
tc=(tf-32.0)/1.8 #convert F to C
tempShow(int(tc))
print('F:',tf,'|','C:',tc)
time.sleep(1)