From 494db77fb0eadef96e833663468f395dc86222d8 Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Fri, 16 Jul 2021 13:36:48 -0400 Subject: [PATCH 1/3] Update to use adafruit_pixelbuf. --- neopixel.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/neopixel.py b/neopixel.py index 316635f..6af8d95 100644 --- a/neopixel.py +++ b/neopixel.py @@ -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" @@ -39,7 +42,7 @@ """Green Red Blue White""" -class NeoPixel(_pixelbuf.PixelBuf): +class NeoPixel(adafruit_pixelbuf.PixelBuf): """ A sequence of neopixels. From ce71117672eff51c5161b61ddff24d1cc947af2b Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Fri, 16 Jul 2021 13:40:15 -0400 Subject: [PATCH 2/3] Update requirements.txt. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7b6bd04..3f5796e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ # SPDX-License-Identifier: Unlicense Adafruit-Blinka -adafruit-circuitpython-pypixelbuf>=2.0.0 +adafruit-circuitpython-pixelbuf From 5c1a3012c56c6a2df30bf9a5aac444733eb00450 Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Fri, 16 Jul 2021 13:41:27 -0400 Subject: [PATCH 3/3] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7506c4b..84dd27c 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ # Author details author="Adafruit Industries & Damien P. George", author_email="circuitpython@adafruit.com", - 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