Skip to content
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

Expose individual brightness modification in stock dotstar library #19

Merged
merged 12 commits into from
May 14, 2018

Conversation

mcscope
Copy link
Contributor

@mcscope mcscope commented May 14, 2018

So we can't use the per-pixel brightness byte in stock DotStar, because the API should match NeoPixels and NeoPixels don't have per-pixel brightness values.

This is a new class, Advanced Dotstar, that uses these features. You only need to import it if you want it's features, so hopefully it saves our users some ram hit.

Turns out we can't easily bundle multiple files in one of these modules, so I've integrated my functionality into the main DotStar class.

Fufills issue: #16

@mcscope mcscope force-pushed the advanced_dotstar branch 3 times, most recently from 702403a to 133574c Compare May 14, 2018 19:05
@mcscope mcscope changed the title Add an Advanced Dotstar class that lets you set individual brightness Expose individual brightness modification in stock dotstar library May 14, 2018
@mcscope mcscope force-pushed the advanced_dotstar branch from 83b2519 to 401c316 Compare May 14, 2018 20:02
@mcscope
Copy link
Contributor Author

mcscope commented May 14, 2018

@tannewt Please review!

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.

Thanks for adding this! I like that it allows for per-pixel brightness.

@tannewt tannewt merged commit c2b8172 into adafruit:master May 14, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 16, 2018
Updating https://github.com/adafruit/Adafruit_CircuitPython_DotStar to 1.2.0 from 1.1.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#20 from mcscope/patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#19 from mcscope/advanced_dotstar
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#18 from mcscope/color_orders
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#17 from margaret/consistent_get_set
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#14 from sommersoft/new_docs
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.

2 participants