get_max_speed()
- 1 Minute to read
get_max_speed()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
Each groups of leds can play the animation in different speeds. This function allows you to get the maximum available speed for the specified group.
Reference
Arguments
Arguments | Type | Default value | Explenation |
---|---|---|---|
group | string | None | name of the predefined led's group |
Return
The maximum speed allowed.
Exceptions
Exception | Condition |
---|---|
RayaLedsWrongGroup | Invalid group name (group doesn't exist). |
See the complete list of Raya Exceptions.
Example
Print the maximum speed allowd to play an animation of the 'head' group
print(leds.get_max_speed(group = 'head'))
Console output:
17
Was this article helpful?