Hi,
I have a struct that contains another struct
typedef struct
{
uint8_t r = 0;
uint8_t g = 0;
uint8_t b = 0;
} Color;
typedef struct
{
uint8_t numLeds;
uint16_t *positions;
Color brightColor;
Color dimColor;
} Section;
I want to fill the 'Section' now
const Section sect1 = {
sect1size, // Exists
sect1pos, // Exists
{ 128, 0, 10 },
{ 23, 0, 2 }
};
, but Arduino doesn't like the way I want to create those Colors 'on the fly'. How do I actually do that?
Daniel