18 lines
383 B
Python
18 lines
383 B
Python
from scoreboard import ScoreboardMatrix
|
|
from time import sleep
|
|
|
|
# modes
|
|
from modes import score
|
|
|
|
scoreboard_matrix = ScoreboardMatrix()
|
|
|
|
def main():
|
|
while True:
|
|
if scoreboard_matrix.current_slide == "score":
|
|
canvas = score.draw_frame(scoreboard_matrix)
|
|
if canvas:
|
|
scoreboard_matrix.canvas = scoreboard_matrix.matrix.SwapOnVSync(canvas)
|
|
|
|
sleep(2)
|
|
|
|
main() |