(self)
Turns of all pixels by setting their color to black.
Turns of all pixels by setting their color to black.
Turns of all pixels by setting their color to black .
def clear(self) -> None:
        """Turns of all pixels by setting their color to black."""
        if not self.initialized:
            return
        for led in range(self.LED_COUNT):
            self.controller.setPixelColorRGB(led, 0, 0, 0)
        self.controller.show()
def clear ( self ) -> None : if not self . initialized : return for led in range ( self . LED_COUNT ) : self . controller . setPixelColorRGB ( led , 0 , 0 , 0 ) self . controller . show ( )