import displayio
from adafruit_bitmap_font.bitmap_font import load_font
from adafruit_display_text.label import Label

METRIC = True
display = board.DISPLAY
splash = displayio.Group()
arial = load_font("/fonts/Arial-18.pcf")
temperature = Label(
	arial,
    text = "10.0 K",
    color = 0x3333FF,
    x = display.width * 3 // 8,
    y = display.height * 3 // 8)

display.root_group = splash

def loop():
    if METRIC:
        temperature.text = get_temp_C()
    else:
        temperataure.text = get_temp_F()

if __name__=="__main__":
    while True:
        loop()
        time.sleep(0.1)