Hi Louis, thanks for the quick answer.
Here is a link to a video of what I get with your modifications: MATRIX_1_4.mp4
This is supposed to be a blue dot scanning every row pixel by pixel over a red background.
It’s hard to describe what’s happening, I hope the video talk by itself.
And here is the code :
void loop() {
static unsigned char x = 0;
static unsigned char y = 0;
SM_RGB color = CRGB(CHSV(200, 255, 255));
backgroundLayer.drawPixel(x,y, color);
backgroundLayer.swapBuffers();
x++;
if (x >= kMatrixWidth) {
x = 0;
y++;
if (y >= kMatrixHeight) {
y = 0;
backgroundLayer.fillScreen(defaultBackgroundColor);
}
}
delay(100);
digitalWrite(ledPin, !digitalRead(ledPin));
}
Here a picture of a simple grey background : LINK
Do you understand what’s going on ? If you can give me a hint of what I can modify in the main library code, I can give it a try.
Regards,
Guillaume