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

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?

What's Next