This commit is contained in:
Lukas Schulz 2020-12-19 23:37:17 +01:00
parent 97122fe0f6
commit c13b1bb6e1

View file

@ -26,7 +26,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)
@ -52,7 +52,8 @@ def get_track():
#image.save("thumbnail.jpg","JPEG") #image.save("thumbnail.jpg","JPEG")
print('set image') print('set image')
image = Image.new('RGB', (32, 32), color = 'red') image = Image.new('RGB', (32, 32), color = 'red')
self.screen.SetImage(image.convert('RGB')) #screen.SetImage(image.convert('RGB'))
screen.SetPixel(0,0,255,255,255)
print('image set') print('image set')
#if token: #if token: