Two dimensional array question
hello,
i'm prototyping program cycle through series of rgb values , assign them rgb led. got stuck trying setup 2 dimensional array. saw few previous posts on multi-dimensional arrays on board still wasn't able things working. here's have far...
int color1[] = {140, 40, 00}; // orange
int color2[] = {200, 20, 00}; // red
int color3[] = {100, 255, 100}; // green
int color4[] = {10, 120, 30}; // greener
int color5[] = {6, 1, 34}; // dark
int color_set[] = {color1, color2, color3, color4, color5};
i "error: invalid conversion 'int*' 'int'" on compile.
thanks can give!
i'm prototyping program cycle through series of rgb values , assign them rgb led. got stuck trying setup 2 dimensional array. saw few previous posts on multi-dimensional arrays on board still wasn't able things working. here's have far...
int color1[] = {140, 40, 00}; // orange
int color2[] = {200, 20, 00}; // red
int color3[] = {100, 255, 100}; // green
int color4[] = {10, 120, 30}; // greener
int color5[] = {6, 1, 34}; // dark
int color_set[] = {color1, color2, color3, color4, color5};
i "error: invalid conversion 'int*' 'int'" on compile.
thanks can give!
code: [select]
int* color_set[] = {color1, color2, color3, color4, color5};the error message had hidden clue in

Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Two dimensional array question
arduino
Comments
Post a Comment