Skip to content

Commit 494db77

Browse files
committed
Update to use adafruit_pixelbuf.
1 parent fd912e6 commit 494db77

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
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

0 commit comments

Comments
 (0)