How can I set an overall brightness? #761
-
Just comming from normal Adafruit NeoPixel library, and so im used to working with original neopixel's I tried various things but none of them seem to work with my code, which involves Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
https://github.com/Makuna/NeoPixelBus/wiki/FAQ-%239 So, if you need GetPixelColor to work (provide the original color without the brightness applied) then the recommended way is demonstrated in the NeoPixelDibTest example. Create a buffer, treat it as your strip for your animations and calls to GetPixelColor/SetPixelColor. Then Render that buffer into the NeoPixelBus object. |
Beta Was this translation helpful? Give feedback.
https://github.com/Makuna/NeoPixelBus/wiki/FAQ-%239
There is an example using NeoPixelBusLg and it has replaced NeoPixelBrightnessBus so that FAQ needs to get updated.
Key thing is, GetPixelColor() and overall brightness changes are fraught with hidden problems that too many users kept hitting and not understanding.
So, if you need GetPixelColor to work (provide the original color without the brightness applied) then the recommended way is demonstrated in the NeoPixelDibTest example.
Create a buffer, treat it as your strip for your animations and calls to GetPixelColor/SetPixelColor. Then Render that buffer into the NeoPixelBus object.