Hello, as your suggestion, I also try to use the neopixel library to control my SK6812, but there a error when use it in pyboard V1.1
Code: Select all
from neopixel import NeoPixel
pin = machine.Pin('Y9')
n = NeoPixel(pin, 5, bpp=4)
n.ORDER = (0,1,2,3)
n.TIMING = (300,900,600,600)
n.__setitem__((0,0,0,0))
n.write()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "neopixel.py", line 26, in write
AttributeError: 'module' object has no attribute 'pixelbitstream'
I also try to use pyfile from
https://github.com/micropython/micropyt ... eopixel.py, but it is also an error:
Code: Select all
from machine import bitstream
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: can't import name bitstream
Is the bitstream function had been integrated in pyboard lib? How to fix this error?
BTW, I have another question which maybe stupid, If I want to see the source code of built-in libraries like neopixel.py, where can I get them? because neopixel.py have an error but I can't find it and fix the error.
Thank you again!