Hi,
I have 2 strings of APA104.
(CRGB leds[NUM_LEDS];
CRGB led_signe[NUM_LED_SIGN]
All is ok but i need different BRIGHTNESS beetwen thoses 2 strings
My question is: how obtain different brightness in a same show ?
thanks
Hi,
I have 2 strings of APA104.
(CRGB leds[NUM_LEDS];
CRGB led_signe[NUM_LED_SIGN]
All is ok but i need different BRIGHTNESS beetwen thoses 2 strings
My question is: how obtain different brightness in a same show ?
thanks
just set them to different values?
leds[i].setHSV(Hue,Sat,leds_brightness)
led_signe[i].setHSV(Hue,Sat,led_signe_brightness)
You’ll need to call each strip controller’s .show() method separately.
Store the return value of FastLED.addLeds() in a CLEDController variable, then call .showLeds(brightness) on that object.
//e.g.
CLEDController strip = FastLED.addLeds<WS2812, GRB, 8>(leds, NUM_LEDS);
CLEDController sign = FastLED.addLeds<WS2812, GRB, 9>(led_sign, NUM_LED_SIGN);
// then you can call them like this:
strip.showLeds(255);
sign.showLeds(128);
I like that approach to breaking out the CLEDControllers. I might have to use that sometime.
Yes, thanks i like too CLEDControllers
i 'll try
Yet other way you could do it by (ab)using color correction, courtesy of an example from Daniel.
@Luminous_Elements I tried your method but it does not complile.
Could you please tell me what I have overlooked? Thank you!
http://pastebin.com/2tZD5XdL
@Juergen_Bruegl , you need to store the CLEDController references outside of setup(), otherwise they are “out of scope” from outside the setup() function. I’ve changed the type of LEFT and RIGHT to be pointers, since the compiler won’t let me use references without immediately assigning a value.
@Luminous_Elements Thanks a million!