Skip to content

Commit 2a4e814

Browse files
committed
Linting.
1 parent 85d7628 commit 2a4e814

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ deploy:
2323

2424
install:
2525
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
26+
- pip install --force-reinstall pylint==1.9.2
2627

2728
script:
2829
- pylint adafruit_circuitplayground/*.py

examples/pixels_simpletest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import time
44
from adafruit_circuitplayground.express import cpx
55

6-
76
# The number of pixels in the strip
87
numpix = 10
98

9+
1010
def wheel(pos):
1111
# Input a value 0 to 255 to get a color value.
1212
# The colours are a transition r - g - b - back to r.
@@ -20,6 +20,7 @@ def wheel(pos):
2020
pos -= 170
2121
return (0, int(pos*3), int(255 - pos*3))
2222

23+
2324
def rainbow_cycle(wait):
2425
for j in range(255):
2526
for i in range(cpx.pixels.n):
@@ -28,6 +29,7 @@ def rainbow_cycle(wait):
2829
cpx.pixels.show()
2930
time.sleep(wait)
3031

32+
3133
cpx.pixels.auto_write = False
3234
cpx.pixels.brightness = 0.3
3335
while True:

0 commit comments

Comments
 (0)