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
int
The maximum speed allowed.
Exceptions
RayaLedsWrongGroup
See the complete LEDs exceptions.
Usage example
Print the maximum speed allowed to play an animation of the 'head' group
self.log.info(leds.get_max_speed(group = 'head'))
Console output:
17
Was this article helpful?