yes.
This commit is contained in:
parent
ca35eb7c9a
commit
871e6d5f5d
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -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'))
|
||||||
|
|
Loading…
Reference in a new issue