google / aiyprojects-raspbian

API libraries, samples, and system images for AIY Projects (Voice Kit and Vision Kit)
https://aiyprojects.withgoogle.com/
Apache License 2.0
1.63k stars 694 forks source link

Changing Color of LED button in Voice V2 #579

Open rockman55 opened 5 years ago

rockman55 commented 5 years ago

How can I change the color of the Arcade Button Led? I have run the led.py example and I know that there are many options to choose from, currently the color of my button is red. I would like to be able to change the color to something other than red. Thanks

dmitriykovalev commented 5 years ago

Please check out this example code file: https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/examples/leds_example.py

rockman55 commented 5 years ago

Thanks dmitriykovalev I have run this program, but what I am trying to do is change the color of the button led when I activate the Google Assistant. At this time the button is only red, and I would like to know how to change the color to another color and I am not sure in which program the color is set. Thanks, Danny

manoj7410 commented 5 years ago

@rockman55 Can you also have a look at : https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/aiy/board.py Seems like assistant_library_demo is making use of Board class.

cwadven commented 4 years ago

If anyone sees, You have to Change https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/aiy/board.py "201 line" color changes seems to be (r, g, b)... I took hour to find this....