Skip to content

Commit

Permalink
Merge pull request #56 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 d471f9e + 53211f2 commit 931b7de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions adafruit_dotstar.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
import digitalio

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"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DotStar.git"
Expand All @@ -41,7 +44,7 @@
"""Blue Green Red"""


class DotStar(_pixelbuf.PixelBuf):
class DotStar(adafruit_pixelbuf.PixelBuf):
"""
A sequence of dotstars.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

Adafruit-Blinka
adafruit-circuitpython-busdevice
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 @@ -37,7 +37,7 @@
install_requires=[
"Adafruit-Blinka",
"adafruit-circuitpython-busdevice",
"adafruit-circuitpython-pypixelbuf>=2.0.0",
"adafruit-circuitpython-pixelbuf",
],
# Choose your license
license="MIT",
Expand Down

0 comments on commit 931b7de

Please sign in to comment.