set_color()
- 1 Minute to read
set_color()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
This function sets a particular group to a color (see list of colors with get_colors).
Reference
Arguments
Arguments | Type | Explanation |
---|---|---|
group | string | Name of the predefined led's group. |
color | string | Name of the predefined led's color. |
Return
None
Exceptions
RayaLedsWrongGroup
RayaLedsWrongColor
See the complete LEDs exceptions.
Usage example
Sets the 'head' group of leds to the color 'red' (see hex values in get_colors().
Code:
self.leds.set_color(group = 'head', color = 'red')
Was this article helpful?