I have working code where I change the colors on my BlinkTape with LEDS.showColor(CRG(255,0,0));

I have working code where I change the colors on my BlinkTape with LEDS.showColor(CRG(255,0,0)); but if I set a status color in setup() and I then call LEDS.setBrightness(80) in Loop (or in a function after a button press) nothing happens. If I add in a color change then I get got the color change and the brightness change. Is there a simple call to change just the brightness?

Thanks for the help!

Just call FastLED.show() after setBrightness.

I should have mentioned that I had tried that, but that ends up with none of the lights being lit. That is exactly how I thought it should work in the beginning though, so now I’m even more stumped.

Please show your complete code.
Upload it at https://gist.github.com/

showColor() doesn’t actually set any of the values in the CRGB array in your Arduino sketch – it’s just sort of a temporary blast of color out the wire directly at the LED strip.

If you want to fill the led array with a constant color, try
fill_solid( leds, NUM_LEDS, {yourcolor} );

THEN FastLED.show and FastLED.setBrightness should do what you expect (I hope!)

https://github.com/W7PEA/BlinkyTapeTutorials/blob/master/_6_BrightnessSwitcher_Button/_6_BrightnessSwitcher_Button.ino

I’m basically changing a value and then calling .SetBrightness(BRIGHT_LEVEL) If I add .show() as it is now in the code, the light just goes off.

Thanks for the help… I’m definitely stumped.

Yeah: see the “leds” array? You need to put values in it, eg like this

for( int k=0; k<NUM_LEDS; k++) {
leds[k] = CRGB( 255, 255, 255);
}

You have to put some values in the “leds” array for everything else to work the way you expect.

“showColor” does NOT put anything in the “leds” array; it bypasses the leds array and just sends the signals for a solid color directly to the strip.

Try adding the loop above into your setup function.

Well you just taught me a lot. Thank you. I had started from another sample and didn’t know about that .showColor()

Thank you!!