Makuna / NeoPixelBus

An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the GitHub Discussions to ask questions as the GitHub Issues feature is used for bug tracking.
GNU Lesser General Public License v3.0
1.18k stars 263 forks source link

T_COLOR_FEATURE not working for shaders? #527

Closed Makuna closed 2 years ago

Makuna commented 3 years ago

Discussed in https://github.com/Makuna/NeoPixelBus/discussions/526

Originally posted by **FrozenCodeException** October 20, 2021 Hi community, I am using SK6812 (RGBW) leds and an arduino mega 2560 R3 for my project. I am looking for a way to use a "global brightness" that scales all pixels in brightness. First i tried NeoPixelBrightnessBus, but then i got over this comment from Makuna (https://github.com/Makuna/NeoPixelBus/issues/339#issuecomment-591066951) where he recommend using a shader. I implemented one similar to the NeoPixelBufferShader-example. Before my strip worked just fine with the "NeoGrbwFeature". After applying the shader (also with NeoGrbwFeature) the colors red and green are switched. Even if i try to use "NeoRgbwFeature" nothing changes. Somebody knows what went wrong here? Is it allowed to use RGBW-LEDstrips with this feature? greetings FrozenCode
Makuna commented 2 years ago

v2.7.0