get_animations()
- 1 Minute to read
get_animations()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
Returns a list with all the available animations for a specified group.
Reference
Arguments
Arguments | Type | Default value | Explanation |
---|---|---|---|
group | string | None | Name of the predefined led's group. |
Return
list
A list with all the available animations for a specified group.
Exceptions
RayaLedsWrongGroup
See the complete LEDs exceptions.
Usage example
Print a list of all available animations for the chest leds.
Code:
self.log.info(self.leds.get_animations('chest'))
Console output:
['standby', 'waiting', 'loading', 'searching']
Was this article helpful?