Skip to content

Commit

Permalink
Update after nativeio split.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Apr 11, 2017
1 parent ba91408 commit ff67791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neopixel.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# NeoPixel driver for MicroPython on ESP8266
# MIT license; Copyright (c) 2016 Damien P. George

import nativeio
import digitalio
from neopixel_write import neopixel_write

class NeoPixel:
ORDER = (1, 0, 2, 3)
def __init__(self, pin, n, bpp=3):
self.pin = nativeio.DigitalInOut(pin)
self.pin = digitalio.DigitalInOut(pin)
self.n = n
self.bpp = bpp
self.buf = bytearray(n * bpp)
Expand Down

0 comments on commit ff67791

Please sign in to comment.