Prepare for Black autoformatting: dependencies, string staging, single-quote string override
This commit is contained in:
12
kmk/led.py
12
kmk/led.py
@@ -88,20 +88,20 @@ class led:
|
||||
self.set_brightness(0)
|
||||
|
||||
def increase_ani(self):
|
||||
"""
|
||||
'''
|
||||
Increases animation speed by 1 amount stopping at 10
|
||||
:param step:
|
||||
"""
|
||||
'''
|
||||
if (self.animation_speed + 1) >= 10:
|
||||
self.animation_speed = 10
|
||||
else:
|
||||
self.val += 1
|
||||
|
||||
def decrease_ani(self):
|
||||
"""
|
||||
'''
|
||||
Decreases animation speed by 1 amount stopping at 0
|
||||
:param step:
|
||||
"""
|
||||
'''
|
||||
if (self.val - 1) <= 0:
|
||||
self.val = 0
|
||||
else:
|
||||
@@ -127,10 +127,10 @@ class led:
|
||||
return self
|
||||
|
||||
def animate(self):
|
||||
"""
|
||||
'''
|
||||
Activates a "step" in the animation based on the active mode
|
||||
:return: Returns the new state in animation
|
||||
"""
|
||||
'''
|
||||
if self.effect_init:
|
||||
self._init_effect()
|
||||
if self.enabled:
|
||||
|
Reference in New Issue
Block a user