J’ai fait cette fonction:
void setPixels(byte r, byte g, byte b)
{
int i, index;
byte ucTemp[64];
for (i = 0; i < NUMPIXELS; i++)
{
index = (4 * i);
ucTemp[index] = i;
ucTemp[index + 1] = r;
ucTemp[index + 2] = g;
ucTemp[index + 3] = b;
}
pixels->neopixelWriteMatrix(NUMPIXELS, ucTemp);
pixels->update();
}
mais, ça ne marche pas… comportement aléatoire. une idée ?