respeaker / docs

ReSpeaker Documents
http://respeaker.io/docs
1 stars 1 forks source link

Custom ring led colours for wait and listen #1

Open ghost opened 7 years ago

ghost commented 7 years ago

the pixel_ring.wait is hard coded to only green?

I would have thought that setting the set_color of the ring would change the wait colour from Green to what ever in code is set.. but this does not work pixel_ring.set_color(rgb=0x505000) pixel_ring.wait()

how do I change the wait and listen LED colours to a custom colour for things like mic.listen() etc ?

xiongyihui commented 7 years ago

You can use a custom color by changing the firmware of ATmega32U4 (the same mcu on Arduino Leonardo). The default sketch is https://github.com/respeaker/respeaker_arduino_library/blob/master/examples/pixels_pattern/pixels_pattern.ino

ghost commented 7 years ago

by "changing the firmware" i just run an Arduino sketch and thats it??

I am using python code for mic.listen() and not arduino code

can you elaborate a little to help me here? thanks

xiongyihui commented 7 years ago

The python code pixel_ring.wait() will send some data to the ATmega32U4, then the ATmega32U4 shows a green spinning ring. So to change the green color to another color, we should change the Arduino code.