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

Moderators: violet, seth.welday

Post Reply
erich.bieri
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Sun May 27, 2018 1:34 pm

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

Post by erich.bieri » Sun May 27, 2018 1:44 pm

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

hong.jiang
Staff
Staff
Posts: 200
Joined: Tue Apr 17, 2018 11:03 am

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

Post by hong.jiang » Mon May 28, 2018 4:08 pm

Hi there:
You can change

Code: Select all

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]))
to

Code: Select all

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]))

Post Reply