get_colors()
  • 1 Minute to read

get_colors()


Article summary

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

ArgumentsTypeDefault valueExplanation
groupstringNonename 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?