the example source code for ActiveLayerColor (and probably some other plugins too) has a variable definition of
static const cRGB foo PROGMEM = …
I tried to turn it to plain
constexpr cRGB foo = …
and thought that’s safe due to constexpr forcing everything to be calculatable at compile time.
However, I got weird behaviour and switch back to the code from the example layout. Know I wonder two things:
- What is PROGMEM and how does it work? It does not seem to be valid C++ for me.
- Why didn’t
I hope that the answer to this questions would be very educative for others too. Could anyone point me out to the documentation please? I could not find the answers myself.
Thank you very much.