tft.clear_screen() colors = [ SerialTFT.Color.blue, SerialTFT.Color.red, SerialTFT.Color.green, SerialTFT.Color.cyan, SerialTFT.Color.magenta, SerialTFT.Color.yellow, SerialTFT.Color.white ] tft.font_size(SerialTFT.Font.small) tft.fg_color(SerialTFT.Color.white) print('Drawing text') tft.write_line('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eu turpis enim, at luctus quam. Mauris augue augue, blandit quis dictum in, accumsan eget odio. In id laoreet massa.') tft.font_size(SerialTFT.Font.medium) tft.write_line('Starting load tests') tft.font_size(SerialTFT.Font.large) tft.write_line('Soooon') time.sleep(5) print('Testing pixel draw rate') result = [] circle_count = 0 last_sec = time.localtime().tm_sec total_count = 0 while len(result) < 10: for color in colors: #tft.fg_color(color) tft.draw_pixel(randint(0,tft.Screen.width),randint(0,tft.Screen.height),color)