yes.
This commit is contained in:
parent
99de81a654
commit
2344513bfd
1 changed files with 0 additions and 5 deletions
5
main.py
5
main.py
|
@ -29,7 +29,6 @@ options.gpio_slowdown = 4
|
|||
options.brightness = 50
|
||||
screen = RGBMatrix(options = options)
|
||||
|
||||
changed = True
|
||||
|
||||
|
||||
token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)
|
||||
|
@ -80,8 +79,6 @@ def updateImage():
|
|||
global canvas
|
||||
canvas = Image.new('RGB', (192, 128), color = 'red')
|
||||
canvas = canvas.paste(get_track(), (0,0))
|
||||
global changed
|
||||
changed = True
|
||||
|
||||
|
||||
|
||||
|
@ -92,8 +89,6 @@ if __name__ == "__main__":
|
|||
while True:
|
||||
if (changed):
|
||||
showImage(canvas)
|
||||
global changed
|
||||
changed = False
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue