def loop():
update_data()
running = True
while running:
draw_to_tft()
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
quit_all()
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
running = False
quit_all()
elif event.key == pygame.K_SPACE:
print('\nSPACE')
quit_all()
评论列表
文章目录