Skip to content

New adafruit_ws2801.py #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

Merged
merged 16 commits into from
Mar 19, 2018
Merged

New adafruit_ws2801.py #1

merged 16 commits into from
Mar 19, 2018

Conversation

kevinjwalters
Copy link

As discussed in https://forums.adafruit.com/viewtopic.php?f=60&t=129619

New adafruit_ws2801.py based on https://github.com/adafruit/Adafruit_CircuitPython_DotStar and protocol dervied from https://github.com/adafruit/Adafruit-WS2801-Library/blob/master/Adafruit_WS2801.cpp and tested on a 50 12mm led string.

WS2801 constructor argument brightness unlikely to work at the momemt due to inherited strangeness/bug.

…CircuitPython_DotStar and protocol dervied from https://github.com/adafruit/Adafruit-WS2801-Library/blob/master/Adafruit_WS2801.cpp and tested on a 50 12mm led string.

WS2801 constructor argument brightness unlikely to work at the momemt due to inherited strangeness/bug.
ladyada
ladyada previously requested changes Feb 7, 2018
Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiya! this looks like a great start, but needs some extra files to get going.
Please check out
https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/creating-a-library
and run the 'cookiecutter' in this directory to create all the extra files like so!

$ cookiecutter gh:adafruit/cookiecutter-adafruit-circuitpython
You've downloaded /c/Users/ladyada/.cookiecutters/cookiecutter-adafruit-circuitpython before. Is it okay to delete and re-download it? [yes]:
library_name: WS2801
depends_on_bus_device []: y
depends_on_register []:
author: Your Name Here
github_user [adafruit]:
library_prefix []: Adafruit
company []: 

In the end you'll have all these files like this repo: https://github.com/adafruit/Adafruit_CircuitPython_TSL2591

Thank you! it is appreciated and will make this library the best ever :)

@tannewt
Copy link
Member

tannewt commented Feb 7, 2018

We're available on Discord and the forums if you have questions! Good job getting it going!

@kevinjwalters
Copy link
Author

I'll take a look at this in about 2.5 weeks, got some other stuff to do.

@ladyada
Copy link
Member

ladyada commented Feb 7, 2018

All good!

@tannewt
Copy link
Member

tannewt commented Mar 5, 2018

@kevinjwalters Do you still plan on circling back to this PR?

@kevinjwalters
Copy link
Author

Just looking at this now...

@kevinjwalters
Copy link
Author

Whilst I remember, the cookiecutter script/template produces copyrights with 2017 in them. Perhaps this should be configurable and default to the current year?

@tannewt
Copy link
Member

tannewt commented Mar 16, 2018 via email

@kevinjwalters
Copy link
Author

Travis says:

Warning, treated as error:
autodoc: failed to import module 'adafruit_ws2801'; the following exception was raised:
No module named 'busio'

How should I deal with that?

@kevinjwalters
Copy link
Author

Ok, I worked out how to make all checks pass. I'd suggest a good look over this as i'm still a bit new to Python and this is my first Adafruit library creation.

@tannewt tannewt dismissed ladyada’s stale review March 19, 2018 02:23

@kevinjwalters had added cookiecutter files.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks excellent! Sorry for not chiming in on helping with the bot. I'm glad you figured it out! Thank you so much.

@tannewt tannewt merged commit 6a5172e into adafruit:master Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants