MCPcopy Create free account
hub / github.com/KMKfw/kmk_firmware / decrease_ani

Method decrease_ani

kmk/extensions/rgb.py:357–365  ·  view source on GitHub ↗

Decreases animation speed by 1 amount stopping at 0 :param step:

(self)

Source from the content-addressed store, hash-verified

355 self._do_update()
356
357 def decrease_ani(self):
358 '''
359 Decreases animation speed by 1 amount stopping at 0
360 :param step:
361 '''
362 self.animation_speed = clamp(self.animation_speed - 1, 0, 10)
363
364 if self._check_update():
365 self._do_update()
366
367 def off(self):
368 '''

Callers 1

_rgb_andMethod · 0.95

Calls 3

_check_updateMethod · 0.95
_do_updateMethod · 0.95
clampFunction · 0.90

Tested by

no test coverage detected