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

SET BRIGHTNESS..?? #3

Open
KangKamal opened this issue Feb 14, 2018 · 2 comments
Open

SET BRIGHTNESS..?? #3

KangKamal opened this issue Feb 14, 2018 · 2 comments

Comments

@KangKamal
Copy link

actually, the code is work, but how to set brightness? i saw the library just using setBrightness but my led turn on randomly color... how to use it? thanks

@rogerclarkmelbourne
Copy link
Owner

Umm.

Looks like I failed to implement that function, and its still got the adafruit code which uses a buffer which contains RGBRGBRGB style data, but my version encodes this into data that it can directly send via SPI DMA

So the setBrightness function needs to be re-written to unencode the buffer back to RGB, do the brightness modification and then re-encode

@aaronaverill
Copy link

Implemented in this pull request, along with getPixelColor()

#6

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

No branches or pull requests

3 participants