Skip to content

Commit 33bc5e9

Browse files
committed
Update to use adafruit_pixelbuf.
1 parent d471f9e commit 33bc5e9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

adafruit_dotstar.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
import digitalio
1818

1919
try:
20-
import _pixelbuf
20+
import adafruit_pixelbuf
2121
except ImportError:
22-
import adafruit_pypixelbuf as _pixelbuf
22+
try:
23+
import _pixelbuf as adafruit_pixelbuf
24+
except ImportError:
25+
import adafruit_pypixelbuf as adafruit_pixelbuf
2326

2427
__version__ = "0.0.0-auto.0"
2528
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DotStar.git"
@@ -41,7 +44,7 @@
4144
"""Blue Green Red"""
4245

4346

44-
class DotStar(_pixelbuf.PixelBuf):
47+
class DotStar(adafruit_pixelbuf.PixelBuf):
4548
"""
4649
A sequence of dotstars.
4750

0 commit comments

Comments
 (0)