This commit is contained in:
Lukas Schulz 2020-12-19 22:09:02 +01:00
parent ca35eb7c9a
commit 871e6d5f5d

View file

@ -25,7 +25,7 @@ options.hardware_mapping = 'regular'
options.pixel_mapper_config = 'U-mapper' options.pixel_mapper_config = 'U-mapper'
options.limit_refresh_rate_hz = 240 options.limit_refresh_rate_hz = 240
options.gpio_slowdown = 4 options.gpio_slowdown = 4
self.screen = RGBMatrix(options = options) #pygame.display.set_mode(self.size, self.flags) screen = RGBMatrix(options = options) #pygame.display.set_mode(self.size, self.flags)
@ -42,3 +42,5 @@ if token:
image.save("thumbnail.jpg","JPEG") image.save("thumbnail.jpg","JPEG")
else: else:
print("Can't get token for", username) print("Can't get token for", username)
screen.setImage(image.convert('RGB'))