Skip to content

Commit b2f21e6

Browse files
authored
Merge pull request #115 from kattni/pixelbuf-update
Update to use adafruit_pixelbuf.
2 parents fd912e6 + 5c1a301 commit b2f21e6

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

neopixel.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
from neopixel_write import neopixel_write
2020

2121
try:
22-
import _pixelbuf
22+
import adafruit_pixelbuf
2323
except ImportError:
24-
import adafruit_pypixelbuf as _pixelbuf
24+
try:
25+
import _pixelbuf as adafruit_pixelbuf
26+
except ImportError:
27+
import adafruit_pypixelbuf as adafruit_pixelbuf
2528

2629

2730
__version__ = "0.0.0-auto.0"
@@ -39,7 +42,7 @@
3942
"""Green Red Blue White"""
4043

4144

42-
class NeoPixel(_pixelbuf.PixelBuf):
45+
class NeoPixel(adafruit_pixelbuf.PixelBuf):
4346
"""
4447
A sequence of neopixels.
4548

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# SPDX-License-Identifier: Unlicense
44

55
Adafruit-Blinka
6-
adafruit-circuitpython-pypixelbuf>=2.0.0
6+
adafruit-circuitpython-pixelbuf

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# Author details
3535
author="Adafruit Industries & Damien P. George",
3636
author_email="circuitpython@adafruit.com",
37-
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-pypixelbuf>=2.0.0"],
37+
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-pixelbuf"],
3838
# Choose your license
3939
license="MIT",
4040
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)