is there a way to allow the use of CHSV( , , ) for progmem gradients?
this is what i’d like to do,:
const TProgmemHSVPalette16 fireHSV PROGMEM =
{
CHSV(0, 255, 0), //black
CHSV(0, 255, 51),
CHSV(0, 255, 102),
CHSV(0, 255, 153),
CHSV(0, 255, 204),
CHSV(0, 255, 255), //fades to red
CHSV(12, 255, 255),
CHSV(24, 255, 255),
CHSV(36, 255, 255),
CHSV(48, 255, 255),
CHSV(60, 255, 255), //fades to orange
CHSV(60, 204, 255),
CHSV(60, 153, 255),
CHSV(60, 102, 255),
CHSV(60, 51, 255),
CHSV(60, 0, 255) //fades to white
};
and I am getting this error message:
error: cannot convert ‘CHSV’ to ‘const uint32_t {aka const long unsigned int}’ in initialization
Compiles fine with CRGB( , , ,) but does very unexpected things with the colors.
Is it just that only CRGB constants (such as CRGB::Red) are work for progmem gradients?