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?
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?