09-12-2017, 16:19
Już sobie poradziłem.
Ogólnie takich "const int " będzie wiele z różnymi koordynatami.
Dlatego do wyświetlenia ich po prostu zrobiłem taką funkcję:
const int w_it[3] = { 0, 0, 3 };
const int w_is[3] = { 2, 1, 3 };
....
void setDiode(const int wordArr[3]){
matrix.drawFastHLine(wordArr[0], wordArr[1], wordArr[2] , ledColor);
}
i wyświetlam
setDiode(w_it);
Ogólnie takich "const int " będzie wiele z różnymi koordynatami.
Dlatego do wyświetlenia ich po prostu zrobiłem taką funkcję:
const int w_it[3] = { 0, 0, 3 };
const int w_is[3] = { 2, 1, 3 };
....
void setDiode(const int wordArr[3]){
matrix.drawFastHLine(wordArr[0], wordArr[1], wordArr[2] , ledColor);
}
i wyświetlam
setDiode(w_it);