This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multi-dimensional arrays as parameters to functions

I apologize for the ignorance.
I have a function

 void Color_send(uint8_t (*color)[3], uint16_t len)

The function have as parameter for RGB of ligth any as
uint8_t light[100][3];

Solve the problem of how to be able to, when you write a program using predefined values of color.
Any as

#define RED   {255, 0, 0}
#define GREEN {0, 255, 0}
#define BLUE  {0, 255, 0}
...
Color_send( RED, 1);
Color_send( GREEN, 1);


But not this works, advice on how to solve the problem?