-
Notifications
You must be signed in to change notification settings - Fork 38
Cookiecutter the library and update to match NeoPixel API. #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I compared the impl with the neopixel library, and it looks good and consistent (and different where necessary). I tried it with a strip of DotStars I have, and couldn't get it to work, but I think I have 5V/3.3v problems.
If the main file is named adafruit_dotstar.py
, then it will need to be import adafruit_dotstar
, no? Did you want to change the name like that?
Yeah, I want our libraries to have the adafruit_ prefix. neopixel is unique since its more prevalent already. |
adafruit_dotstar.py
Outdated
|
||
.. code-block:: python | ||
|
||
import dotstar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import adafruit_dotstar
adafruit_dotstar.py
Outdated
|
||
RED = 0x100000 | ||
|
||
with dotstar.DotStar(APA102_SCK, APA102_MOSI, 1) as pixels: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with adafruit_dotstar.DotStar(...)
Got it re naming. So a couple of examples have to change in dotstar.py. Tnx. |
Fixed up the example and deinit code. Tested by @kattni and I on the CircuitPlayground Express with DotStar strips. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I successfully tested the adafruit_dotstar library on a Circuit Playground Express with a strip of white Dotstars. Previous issues have been resolved.
No description provided.