Skip to content

Commit a0d451b

Browse files
committed
Linting
1 parent fa7d603 commit a0d451b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ESP8266_MicroPython_Holiday_Lights/lights.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,24 @@ def mirror(values):
3434
def _lerp(x, x0, x1, y0, y1):
3535
return y0 + (x - x0) * ((y1 - y0)/(x1 - x0))
3636

37+
3738
# Animation functions:
38-
def blank(config, np, pixel_count):
39+
def blank(config, np, pixel_count): # pylint: disable=unused-argument, redefined-outer-name
3940
# Turn off all the pixels.
4041
np.fill((0,0,0))
4142
np.write()
4243

43-
def solid(config, np, pixel_count):
44+
45+
def solid(config, np, pixel_count): # pylint: disable=unused-argument, redefined-outer-name
4446
# Solid pulse of all pixels at the same color.
4547
colors = config['colors']
4648
elapsed = utime.ticks_ms() // config['period_ms']
4749
current = elapsed % len(colors)
4850
np.fill(colors[current])
4951
np.write()
5052

51-
def chase(config, np, pixel_count):
53+
54+
def chase(config, np, pixel_count): # pylint: disable=unused-argument, redefined-outer-name
5255
# Chasing animation of pixels through different colors.
5356
colors = config['colors']
5457
elapsed = utime.ticks_ms() // config['period_ms']
@@ -57,7 +60,8 @@ def chase(config, np, pixel_count):
5760
np[i] = colors[current]
5861
np.write()
5962

60-
def smooth(config, np, pixel_count):
63+
64+
def smooth(config, np, pixel_count): # pylint: disable=unused-argument, redefined-outer-name
6165
# Smooth pulse of all pixels at the same color. Interpolates inbetween colors
6266
# for smoother animation.
6367
colors = config['colors']

0 commit comments

Comments
 (0)