This commit is contained in:
Lukas Schulz 2020-12-20 00:16:55 +01:00
parent 99de81a654
commit 2344513bfd

View file

@ -29,7 +29,6 @@ options.gpio_slowdown = 4
options.brightness = 50 options.brightness = 50
screen = RGBMatrix(options = options) screen = RGBMatrix(options = options)
changed = True
token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri) token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)
@ -80,8 +79,6 @@ def updateImage():
global canvas global canvas
canvas = Image.new('RGB', (192, 128), color = 'red') canvas = Image.new('RGB', (192, 128), color = 'red')
canvas = canvas.paste(get_track(), (0,0)) canvas = canvas.paste(get_track(), (0,0))
global changed
changed = True
@ -92,8 +89,6 @@ if __name__ == "__main__":
while True: while True:
if (changed): if (changed):
showImage(canvas) showImage(canvas)
global changed
changed = False