Neopixel Matrix rgb 8x8 suggestions

Status
Not open for further replies.

urbanspaceman

Well-known member
Hello, i have a question
i try tu use a neopixel matrix 8x8 rgb matrix.

the call is
matrix.drawPixel(0,0, matrix.Color(255,255,255));

i want to define in separated file something to facilitate the use of the single dot. For example

a0 = "0,0";
a1 = "1,0";

and the call is
matrix.drawPixel(a0, matrix.Color(255,255,255));
matrix.drawPixel(a1, matrix.Color(255,255,255));

...

but i have the error
invalid conversion from 'const char*' to 'int'

what should I do?
is there a better way?
 
found it!
#define a0 0,0
#define a1 1,0
#define a2 2,0
#define a3 3,0
#define a4 4,0
#define a5 5,0
#define a6 6,0
#define a7 7,0
...
 
Status
Not open for further replies.
Back
Top