diff --git a/.travis.yml b/.travis.yml index f0378ef..4645d93 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ python: cache: pip: true deploy: - provider: releases +- provider: releases api_key: "$GITHUB_TOKEN" file_glob: true file: "$TRAVIS_BUILD_DIR/bundles/*" diff --git a/docs/conf.py b/docs/conf.py index f16ecb5..0f0fa60 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,6 +15,7 @@ 'sphinx.ext.viewcode', ] +autodoc_mock_imports = ["neopixel_write"] intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} diff --git a/examples/neopixel_simpletest.py b/examples/neopixel_simpletest.py index 2994430..2448ec1 100644 --- a/examples/neopixel_simpletest.py +++ b/examples/neopixel_simpletest.py @@ -8,6 +8,7 @@ # On CircuitPlayground Express -> Board.NEOPIXEL # Otherwise choose an open pin connected to the Data In of the NeoPixel strip, # such as board.D1 +# pylint: disable=no-member pixpin = board.NEOPIXEL # The number of pixels in the strip @@ -30,10 +31,9 @@ def wheel(pos): return format_tuple(0, 0, 0) if pos < 85: return format_tuple(int(pos * 3), int(255 - (pos*3)), 0) - elif pos < 170: + if pos < 170: pos -= 85 return format_tuple(int(255 - pos*3), 0, int(pos*3)) - #else: pos -= 170 return format_tuple(0, int(pos*3), int(255 - pos*3))