Merge remote-tracking branch 'upstream/main' into mdev

This commit is contained in:
Ewoud
2023-01-24 20:57:08 +01:00
24 changed files with 3652 additions and 1706 deletions

View File

@@ -66,6 +66,7 @@ void WS2812FX::setUpMatrix(bool reset) {
Segment::maxHeight = 1;
panels = 0;
panel.clear(); // release memory allocated by panels
resetSegments();
return;
}
@@ -116,8 +117,8 @@ void WS2812FX::setUpMatrix(bool reset) {
panel.clear();
Segment::maxWidth = _length;
Segment::maxHeight = 1;
return;
}
resetSegments();
}
#else
isMatrix = false; // no matter what config says
@@ -559,7 +560,7 @@ void Segment::drawCharacter(unsigned char chr, int16_t x, int16_t y, uint8_t w,
for (int j = 0; j<w; j++) { // character width
int16_t x0 = x + (w-1) - j;
if ((x0 >= 0 || x0 < cols) && ((bits>>(j+(8-w))) & 0x01)) { // bit set & drawing on-screen
addPixelColorXY(x0, y0, col);
setPixelColorXY(x0, y0, col);
}
}
}