We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba91408 commit ff67791Copy full SHA for ff67791
neopixel.py
@@ -1,13 +1,13 @@
1
# NeoPixel driver for MicroPython on ESP8266
2
# MIT license; Copyright (c) 2016 Damien P. George
3
4
-import nativeio
+import digitalio
5
from neopixel_write import neopixel_write
6
7
class NeoPixel:
8
ORDER = (1, 0, 2, 3)
9
def __init__(self, pin, n, bpp=3):
10
- self.pin = nativeio.DigitalInOut(pin)
+ self.pin = digitalio.DigitalInOut(pin)
11
self.n = n
12
self.bpp = bpp
13
self.buf = bytearray(n * bpp)
0 commit comments