This commit is contained in:
Lukas Schulz 2020-12-20 00:19:07 +01:00
parent 84a6a95c39
commit 08a40ceacc

View file

@ -33,7 +33,6 @@ screen = RGBMatrix(options = options)
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)
canvas = Image.new('RGB', (192, 128), color = 'red')
def get_track(): def get_track():
print('getting info') print('getting info')
@ -75,10 +74,10 @@ def main():
x.start() x.start()
def updateImage(): def drawCanvas():
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))
showImage(canvas)
@ -87,7 +86,7 @@ if __name__ == "__main__":
print('text') print('text')
while True: while True:
showImage(canvas) drawCanvas()