def initializePixels()

in smart-mirror-full/extracted/device/script/smart_mirror.py [0:0]


    def initializePixels(self):
        # Choose an open pin connected to the Data In of the NeoPixel strip, i.e. board.D18
        # NeoPixels must be connected to D10, D12, D18 or D21 to work.
        pixel_pin = self.config.LedPin

        # The number of NeoPixels
        num_pixels = self.config.LedCount

        # The order of the pixel colors - RGB or GRB. Some NeoPixels have red and green reversed!
        # For RGBW NeoPixels, simply change the ORDER to RGBW or GRBW.
        ORDER = self.config.LedType

        self.pixels = neopixel.NeoPixel(
            pixel_pin, num_pixels, brightness=1, auto_write=False, pixel_order=ORDER
        )