Skip to content

Commit 6a10a6f

Browse files
making linter happy
1 parent 990e77d commit 6a10a6f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

adafruit_led_animation/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def monotonic_ms():
3636
Implementation of monotonic_ms for platforms without time.monotonic_ns
3737
"""
3838
return int(monotonic() * MS_PER_SECOND)
39+
3940
except (ImportError, NotImplementedError):
4041
from time import time_ns
4142

adafruit_led_animation/color.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@
2727
try:
2828
from rainbowio import colorwheel # pylint: disable=unused-import
2929
except (ImportError, ModuleNotFoundError):
30+
3031
def colorwheel(pos):
3132
# ref: https://github.com/adafruit/circuitpython/blob/main/shared-module/rainbowio/__init__.c
3233
pos = pos - ((pos // 256) * 256)
3334
shift1 = 0
3435
shift2 = 0
35-
if (pos < 85):
36+
if pos < 85:
3637
shift1 = 8
3738
shift2 = 16
38-
elif (pos < 170):
39+
elif pos < 170:
3940
pos -= 85
4041
shift1 = 0
4142
shift2 = 8
@@ -47,6 +48,7 @@ def colorwheel(pos):
4748
p = p if (p < 256) else 255
4849
return (p << shift1) | ((255 - p) << shift2)
4950

51+
5052
RED = (255, 0, 0)
5153
"""Red."""
5254
YELLOW = (255, 150, 0)

0 commit comments

Comments
 (0)