Closed gpshead closed 1 year ago
@gpshead wow nice work! would you like to have this packaged up and distributed in our community bundle for easy circuitpython use? https://github.com/adafruit/CircuitPython_Community_Bundle
@TheKitty ^ good newsy content
Thanks, including it in the community bundle makes sense to me, it looks like it'd fit well under helpers/
@kattni can help ya out!
@gpshead Sorry for the delay! We have a guide on getting a library ready for sharing. It includes a few things not relevant to the Community Bundle though, as we have a few more steps for the Adafruit Bundle. The guide is here. We recommend running cookiecutter as suggested in the guide, and formatting your library similar to how we format ours. However, it is not required. If you have any questions, please ping me directly, and we'll get it sorted. If you find a section in the guide that doesn't make sense, let me know, it could be one of the few bits not relevant to the Community Bundle. Thanks!
The example code for the charlieplexed leds with 0-255 PWM brightness are not corrected for human perception of lightness.
Consider adding that when relevant. In my CharlieWing experience, it makes an antialiased font display such as in the pillow_marquee.py animation easier to read. It may also give that animated gif more definition.
I was about to drop the little code snippet from my project notebook to do that here... but told myself "this really belongs in a common library" as it is useful for LED control of any form. Which at 11pm led me down a Python packaging rabbit hole (note to self: do not do that at 1am). Thankfully, I finally made it out the other side after a night's sleep! Here you go: https://github.com/gpshead/pwm_lightness aka https://pypi.org/project/pwm-lightness/.
That might go further than you want to explain within a tutorial. But I do think people would find it useful. Up to you!