Skip to content

Commit

Permalink
Merge pull request #30 from kattni/pypi
Browse files Browse the repository at this point in the history
Updated travis.yml
  • Loading branch information
brennen authored Aug 3, 2018
2 parents 4e6aa21 + 69b8489 commit d484074
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}

Expand Down
4 changes: 2 additions & 2 deletions examples/neopixel_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))

Expand Down

0 comments on commit d484074

Please sign in to comment.