Skip to content

Commit

Permalink
Merge pull request #115 from kattni/pixelbuf-update
Browse files Browse the repository at this point in the history
Update to use adafruit_pixelbuf.
  • Loading branch information
kattni authored Jul 19, 2021
2 parents fd912e6 + 5c1a301 commit b2f21e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions neopixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
from neopixel_write import neopixel_write

try:
import _pixelbuf
import adafruit_pixelbuf
except ImportError:
import adafruit_pypixelbuf as _pixelbuf
try:
import _pixelbuf as adafruit_pixelbuf
except ImportError:
import adafruit_pypixelbuf as adafruit_pixelbuf


__version__ = "0.0.0-auto.0"
Expand All @@ -39,7 +42,7 @@
"""Green Red Blue White"""


class NeoPixel(_pixelbuf.PixelBuf):
class NeoPixel(adafruit_pixelbuf.PixelBuf):
"""
A sequence of neopixels.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# SPDX-License-Identifier: Unlicense

Adafruit-Blinka
adafruit-circuitpython-pypixelbuf>=2.0.0
adafruit-circuitpython-pixelbuf
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# Author details
author="Adafruit Industries & Damien P. George",
author_email="[email protected]",
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-pypixelbuf>=2.0.0"],
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-pixelbuf"],
# Choose your license
license="MIT",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down

0 comments on commit b2f21e6

Please sign in to comment.