From ca35eb7c9a8069b3d54093db47428b7a15839ff0 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sat, 19 Dec 2020 22:08:07 +0100 Subject: [PATCH] yes. --- main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/main.py b/main.py index 9a3e678..bab241b 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,8 @@ import spotipy.util as util import config as cfg from PIL import Image +from rgbmatrix import RGBMatrix, RGBMatrixOptions + import requests from io import BytesIO @@ -14,6 +16,17 @@ username = cfg.username scope = 'user-read-currently-playing' +options = RGBMatrixOptions() +options.rows = 32 +options.cols = 64 +options.chain_length = 6 +options.parallel = 2 +options.hardware_mapping = 'regular' +options.pixel_mapper_config = 'U-mapper' +options.limit_refresh_rate_hz = 240 +options.gpio_slowdown = 4 +self.screen = RGBMatrix(options = options) #pygame.display.set_mode(self.size, self.flags) + token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)