Updated interstate module

patch/hub75_color_order
ZodiusInfuser 2023-01-31 13:11:50 +00:00
rodzic 1343f23316
commit eda6e996ce
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -32,10 +32,10 @@ class Interstate75:
# Count Constants
NUM_SWITCHES = 2
def __init__(self, display, panel_type=hub75.PANEL_GENERIC, stb_invert=False):
def __init__(self, display, panel_type=hub75.PANEL_GENERIC, stb_invert=False, color_order=hub75.COLOR_ORDER_RGB):
self.display = PicoGraphics(display=display)
self.width, self.height = self.display.get_bounds()
self.hub75 = hub75.Hub75(self.width, self.height, panel_type=panel_type, stb_invert=stb_invert)
self.hub75 = hub75.Hub75(self.width, self.height, panel_type=panel_type, stb_invert=stb_invert, color_order=color_order)
self.hub75.start()
# Set up the user switches