#CLOCK_DIGITAL = SerialTFT.Color.user_blue #CLOCK_HOUR_HAND = SerialTFT.Color.user_cyan #CLOCK_MINUTE_HAND = SerialTFT.Color.user_cyan #CLOCK_SECOND_HAND = SerialTFT.Color.user_red # -- END COLOR SETUP -- # Clear Screen tft.screen_rotation(SerialTFT.Rotation.landscape) tft.bg_color(CLOCK_BACKGROUND) tft.clear_screen() # Draw the numbers 12, 6, 3 and 9 around the clock in green tft.font_size(SerialTFT.Font.small) tft.fg_color(CLOCK_NUMBERS) tft.goto_pixel(SerialTFT.Screen.width_half-5,5) tft.write('12') tft.goto_pixel(SerialTFT.Screen.width_half-3,SerialTFT.Screen.height-13) tft.write('6') tft.goto_pixel(SerialTFT.Screen.width_half+50,SerialTFT.Screen.height_half-3) tft.write('3') tft.goto_pixel(SerialTFT.Screen.width_half-54,SerialTFT.Screen.height_half-3) tft.write('9') # Draw clock outline tft.fg_color(CLOCK_OUTLINE) tft.draw_filled_circle(CLOCK_ORIGIN_X,CLOCK_ORIGIN_Y,CLOCK_RADIUS)
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) tft.write(supporter_count) # write supporter subline tft.font_size(SerialTFT.Font.small) tft.fg_color(SerialTFT.Color.yellow) tft.goto_pixel(SerialTFT.Screen.width_half - 51, SerialTFT.Screen.height_half + 13) tft.write("Foerdermitglieder")