-
Notifications
You must be signed in to change notification settings - Fork 23
Split library into package and adapt examples+doc #32
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
Please advice if I should use a syntax like the following to simplify the example so that only the import vary:
(Assuming this does works... it is a bit untested) |
Thank you for this change! Definitely an improvement.
I don't think there is a good way to have history of multiple files track back to one. It'll be clear enough when tracked back to the commit that moved everything.
I totally agree. This shouldn't be too hard. You can rename
I would do |
I think I have implemented what was discussed by @tannewt:
All the example should be adapted (and that last point actually limit the change to only the import statement. Finally, I have not put protection against somebody from importing the abstract parent class. I do not really master OO in Python. This is becoming rather complex a PR and I can only test with Scroll pHAT HD and LedShim... so I would welcome someone to test that independantly. |
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.
Two small fixes to the readme. Organizations looks much better! Thank you.
Ok, I have cleaned the documentation part. With Sphynx locally installed I could see the effect of my change and update the example and the presentation of those. |
I can test this out over the upcoming weekend with: https://www.adafruit.com/product/3137. I don't think have any of the other pieces of supported hardware. |
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.
Re-organization looks good. @kattni can help get this released and guides updated.
Dunno what I am doing... Let's see what Sphynx is saying.
Dunno what I am doing... Let's see what Sphynx is saying.
Co-authored-by: Scott Shawcroft <[email protected]>
b9ddf64
to
1a726c3
Compare
So I have rebase(?) so that #31 is included in this PR. |
This might make PyPi more happy (as seen in Adafruit_CircuitPython_LSM6DS).
I tested all of the example scripts except for the pillow and led_shim ones with a CharlieWing LED 15 x 7 and Feather Sense. Aside from the minor import typo mentioned above in the text example everything is working well. Thanks for splitting these up! |
Do we have a plan to update any dependent drivers and guides? |
Closing as I have included all these changes as part of #38. Thanks for all this work. |
This is a response to #27 .
I have split the best I could the various driver, updated all the example and tested the one I could (mostly Scroll pHAT HD and LedShim).
The sub-driver for those two being done by me, I adapted the copyright now that it is in a separate file, for the other it is a copy of the original comment and copyright.
The move to init.py and cleaning done there is visible in the git history, but copy of the file to make sub-driver mean loosing the git history on those. Maybe there is a way to inherit this history???
I tested the other MCU example on the Scoll pHAT HD, but not on Blinka.
Exemples and README should be up to date.
There is one thing I would like to discuss, it's the fact that one piece of hardware is priviledged, and the other inherit from that one and modify the x, y and formula to write pixels. So Matrix is imported differently than all the other. I would prefer to have a super class that has no implementation and make each sub-driver specify things.