print "Oops! Could not read file." supporter_count = "Err1" except ValueError: print "Oops! Could not convert value(s)." supporter_count = "Err2" except: print "Oops! Unknown error." supporter_count = "Err3" # initialize and clear the screen tft.screen_rotation(SerialTFT.Rotation.landscape) tft.bg_color(SerialTFT.Color.black) tft.clear_screen() # draw logos tft.draw_bitmap("0icon.bmp", 0, SerialTFT.Screen.height_half - 27) tft.draw_bitmap("0icon.bmp", SerialTFT.Screen.width - 32, SerialTFT.Screen.height_half - 27) # write organization title tft.font_size(SerialTFT.Font.small) tft.bg_color(SerialTFT.Color.black) tft.fg_color(SerialTFT.Color.yellow) tft.goto_pixel(SerialTFT.Screen.width_half - 51, 5) tft.write("Abgeordnetenwatch") tft.goto_pixel(SerialTFT.Screen.width_half - 33, 15) tft.write("hat aktuell") # write huge number of supporters tft.font_size(SerialTFT.Font.large) tft.fg_color(SerialTFT.Color.red) tft.goto_pixel(SerialTFT.Screen.width_half - 32, SerialTFT.Screen.height_half - 22)