Exemple #1
0
print('Average rate: ' + str(reduce(lambda x, y: x + y, result) / len(result)))

print('--------------------------------------')
exit(0)


while 1:
	for color in colors:
		#tft.fg_color(color)
		tft.draw_filled_circle(SerialTFT.Screen.width_half,SerialTFT.Screen.height_half,50-randint(0,49),color)



PIX_PER_COL = 17

tft.set_theme(SerialTFT.Theme.matrix)

bar_left = BAR_MARGIN

letters = []

left = 0
for letter in range(0,32):
	letters.append([letter,randint(0,150),randint(0,110),randint(0,60),randint(0,1),randint(3,6)])
	left += 10

left = 0
while 1:

	for letter in letters:
		letter[2] += randint(3,6)