Hi i need help with an array and struct,ime getting an error about braces around scalar initializer for type 'uint8_t {aka unsigned char}' my led script pattern needs to be like bellow,do i need to change my stuct for the pattern.
typedef struct _patt_line_t{
uint16_t dmillis;
uint8_t cmd; // do i need to alter anything hear???
rgb_t color;
uint8_t args[4]; // cmd,arg1,arg2,arg3
} patt_line_t;
const patt_line_t patt_lines_default[] PROGMEM = {
// dur, cmd, arg1,arg2,arg3
{2, {'c',0xcc,0x00,0xcc}},
{2, {'c',0xcc,0x00,0xcc}},
{2, {'c',0x00,0x00,0x00}},
{2, {'c',0x00,0x00,0x00}},
{2, {'c',0xff,0x00,0x00}},
{2, {'c',0xff,0x00,0x00}},
{2, {'c',0x00,0x00,0x00}},
{2, {'c',0x00,0x00,0x00}},
{2, {'c',0x00,0xcc,0x33}},
{2, {'c',0x00,0xcc,0x33}},
{2, {'c',0x00,0x00,0x00}},
{2, {'c',0x00,0x00,0x00}},
{2, {'c',0x00,0xcc,0xcc}},
{2, {'c',0x00,0xcc,0xcc}},
{2, {'c',0x00,0x00,0x00}},
{2, {'c',0x00,0x00,0x00}},
};