yes.
This commit is contained in:
parent
84a6a95c39
commit
08a40ceacc
1 changed files with 4 additions and 5 deletions
9
main.py
9
main.py
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue