From 77a633b1ff80be3694fb3b639bcb9d32349ca6d9 Mon Sep 17 00:00:00 2001 From: James Carr Date: Wed, 28 Jul 2021 14:45:40 +0100 Subject: [PATCH] Remove max_size usage with displayio.Group --- IoT_Party_Parrot/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IoT_Party_Parrot/code.py b/IoT_Party_Parrot/code.py index ecec32bdd..e01bc1257 100644 --- a/IoT_Party_Parrot/code.py +++ b/IoT_Party_Parrot/code.py @@ -18,7 +18,7 @@ bear = secrets['bearer_token'] # query URL for tweets. looking for hashtag partyparrot sent to a specific username -DATA_SOURCE = ('https://api.twitter.com/2/tweets/search/recent?query=#partyparrot to:blitzcitydiy') +DATA_SOURCE = 'https://api.twitter.com/2/tweets/search/recent?query=#partyparrot to:blitzcitydiy' # json data path to get most recent tweet's ID number DATA_LOCATION = ["meta", "newest_id"] @@ -33,7 +33,7 @@ matrix = Matrix(width=32, height=32) display = matrix.display -group = displayio.Group(max_size=20) +group = displayio.Group() # load in party parrot bitmap parrot_bit, parrot_pal = adafruit_imageload.load("/partyParrotsTweet.bmp",