get_colors()
- 1 Minute to read
get_colors()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
Returns a List type string with all the leds colors name.
Reference
List of predefined colors
Refer to this page for a complete list of colors.
Arguments
Arguments | Type | Default value | Explanation |
---|---|---|---|
group | string | None | name of the predefined led's group. |
Return
list
a list type string that containes all the available colors for the LED's.
Exceptions
RayaLedsWrongGroup
See the complete LEDs exceptions.
Usage example
Print the list of possible colors for the selected group.
Code:
self.log.info(self.leds.get_colors(group = 'sensors'))
Console output:
[ 'ALICE_BLUE', ...]
Was this article helpful?