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

Method decrease_ani

kmk/extensions/led.py:182–190  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

180 self.val += 1
181
182 def decrease_ani(self):
183 '''
184 Decreases animation speed by 1 amount stopping at 0
185 :param step:
186 '''
187 if (self.val - 1) <= 0:
188 self.val = 0
189 else:
190 self.val -= 1
191
192 def effect_breathing(self):
193 # http://sean.voisen.org/blog/2011/10/breathing-led-with-arduino/

Callers 1

_key_led_andMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected