ReSpeaker 2-Mics Pi HAT / on-board APA102 LED randomly on at startup

Hi,



I’m using a ReSpeaker 2-Mics Pi HAT on a Pi zero W. The on-board PA102 LEDs are randomly switched on at startup and stay on. Sometimes its only one LED sometimes it’s all three of them. Is there a way to configure them so that they are all switched OFF at startup?



Thanks in advance…

Eric

Hi there:

You can change </s>def write(self, colors): for i in range(self.PIXELS_N): self.dev.set_pixel(i, int(colors[3*i]), int(colors[3*i + 1]), int(colors[3*i + 2]))<e> to </s>def write(self, colors): #for i in range(self.PIXELS_N): #self.dev.set_pixel(i, int(colors[3*i]), int(colors[3*i + 1]), int(colors[3*i + 2]))<e>