Is there a way to set the brightness of a specific led array? I’ve only been able to set Brightness globaly
By using HSV, rather than CRGB, the ‘V’ component is the brightness of the LED, so you can manipulate the V at an individual pixel, at an array or at the NUM_LEDS level.
This means you can apply a mathematical operation to the V, to brighten and dim a pixel or range of pixels.
It is explained well here: https://github.com/FastLED/FastLED/wiki/Pixel-reference
For example:
//Full bright
leds[i] = CHSV( 160, 255, 255);
//80% bright
leds[i] = CHSV( 160, 255, 205);
//80% bright
leds[i] = CHSV( 160, 255, 205);
//50% bright
leds[i] = CHSV( 160, 255, 128);
//20% bright
leds[i] = CHSV( 160, 255, 50);
Work that into your code how you will - by a mathematical formula or by direct manipulation, such as:
// Set up a CHSV color
CHSV myBlue( 160, 128, 255);
// Change brightness by manipulating the ‘Value’ component
myBlue.val == 205 // 80%
myBlue.val == 128 // 50%
myBlue.val == 50 // 20%
Thank you, I had forgotten that this lib supported HSV!!
Small question, how do you make white in HSV?