Skip to content

Commit d484074

Browse files
authored
Merge pull request #30 from kattni/pypi
Updated travis.yml
2 parents 4e6aa21 + 69b8489 commit d484074

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ python:
66
cache:
77
pip: true
88
deploy:
9-
provider: releases
9+
- provider: releases
1010
api_key: "$GITHUB_TOKEN"
1111
file_glob: true
1212
file: "$TRAVIS_BUILD_DIR/bundles/*"

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'sphinx.ext.viewcode',
1616
]
1717

18+
autodoc_mock_imports = ["neopixel_write"]
1819

1920
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
2021

examples/neopixel_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# On CircuitPlayground Express -> Board.NEOPIXEL
99
# Otherwise choose an open pin connected to the Data In of the NeoPixel strip,
1010
# such as board.D1
11+
# pylint: disable=no-member
1112
pixpin = board.NEOPIXEL
1213

1314
# The number of pixels in the strip
@@ -30,10 +31,9 @@ def wheel(pos):
3031
return format_tuple(0, 0, 0)
3132
if pos < 85:
3233
return format_tuple(int(pos * 3), int(255 - (pos*3)), 0)
33-
elif pos < 170:
34+
if pos < 170:
3435
pos -= 85
3536
return format_tuple(int(255 - pos*3), 0, int(pos*3))
36-
#else:
3737
pos -= 170
3838
return format_tuple(0, int(pos*3), int(255 - pos*3))
3939

0 commit comments

Comments
 (0)