fastLED- What does .setCorrection(TypicalLEDStrip); do?
My sketches work the same with or without this member function.
FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, UM_LEDS).setCorrection(TypicalLEDStrip);
fastLED- What does .setCorrection(TypicalLEDStrip); do?
My sketches work the same with or without this member function.
FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, UM_LEDS).setCorrection(TypicalLEDStrip);
as I have it already open:
See row 529 of fastLED.h
/// Set a global color correction. Sets the color correction for all added led strips,
/// overriding whatever previous color correction those controllers may have had.
/// @param correction A CRGB structure describin the color correction.
void setCorrection(const struct CRGB & correction);
"as I have it already open:"
You are braver than I am.
I also found a few definitions for color corrections in color.h.
Now for some experiments to see what effect this parameter has on the colors.
///@file color.h
/// contains definitions for color correction and temperature
///@defgroup ColorEnums Color correction/temperature
/// definitions for color correction and light temperatures
///@{
typedef enum {
// Color correction starting points
/// typical values for SMD5050 LEDs
///@{
TypicalSMD5050=0xFFB0F0 /* 255, 176, 240 */,
TypicalLEDStrip=0xFFB0F0 /* 255, 176, 240 */,
///@}
/// typical values for 8mm "pixels on a string"
/// also for many through-hole 'T' package LEDs
///@{
Typical8mmPixel=0xFFE08C /* 255, 224, 140 */,
TypicalPixelString=0xFFE08C /* 255, 224, 140 */,
///@}
/// uncorrected color
UncorrectedColor=0xFFFFFF
} LEDColorCorrection;
Looks like it turns down the green a lot and the blue a little bit.