get_max_speed()
  • 1 Minute to read

get_max_speed()


Article summary

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

ArgumentsTypeDefault valueExplenation
groupstringNonename of the predefined led's group

Return

The maximum speed allowed.

Exceptions

ExceptionCondition
RayaLedsWrongGroupInvalid 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?

What's Next