File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ deploy:
23
23
24
24
install :
25
25
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
26
+ - pip install --force-reinstall pylint==1.9.2
26
27
27
28
script :
28
29
- pylint adafruit_circuitplayground/*.py
Original file line number Diff line number Diff line change 3
3
import time
4
4
from adafruit_circuitplayground .express import cpx
5
5
6
-
7
6
# The number of pixels in the strip
8
7
numpix = 10
9
8
9
+
10
10
def wheel (pos ):
11
11
# Input a value 0 to 255 to get a color value.
12
12
# The colours are a transition r - g - b - back to r.
@@ -20,6 +20,7 @@ def wheel(pos):
20
20
pos -= 170
21
21
return (0 , int (pos * 3 ), int (255 - pos * 3 ))
22
22
23
+
23
24
def rainbow_cycle (wait ):
24
25
for j in range (255 ):
25
26
for i in range (cpx .pixels .n ):
@@ -28,6 +29,7 @@ def rainbow_cycle(wait):
28
29
cpx .pixels .show ()
29
30
time .sleep (wait )
30
31
32
+
31
33
cpx .pixels .auto_write = False
32
34
cpx .pixels .brightness = 0.3
33
35
while True :
You can’t perform that action at this time.
0 commit comments