Skip to content

Commit 79d03a2

Browse files
committed
Remove unused code - direct hub75 rather than via our own buffer
1 parent 898861b commit 79d03a2

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

wled00/bus_manager.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,34 +1068,6 @@ void __attribute__((hot)) IRAM_ATTR BusHub75Matrix::setPixelColor(uint16_t pix,
10681068
setBitInArray(_ledsDirty, pix, true); // flag pixel as "dirty"
10691069
}
10701070
}
1071-
#if 0
1072-
// !! this code is not used any more !!
1073-
// BusHub75Matrix::BusHub75Matrix will fail if allocating _ledBuffer fails.
1074-
// The fallback code below created lots of flickering so it does not make sense to keep it enabled.
1075-
else {
1076-
// no double buffer allocated --> directly draw pixel
1077-
MatrixPanel_I2S_DMA* display = BusHub75Matrix::activeDisplay;
1078-
VirtualMatrixPanel* fourScanPanel = BusHub75Matrix::activeFourScanPanel;
1079-
#ifndef NO_CIE1931
1080-
c = unGamma24(c); // to use the driver linear brightness feature, we first need to undo WLED gamma correction
1081-
#endif
1082-
uint8_t r = R(c);
1083-
uint8_t g = G(c);
1084-
uint8_t b = B(c);
1085-
1086-
if(fourScanPanel != nullptr) {
1087-
int width = _panelWidth;
1088-
int x = pix % width;
1089-
int y = pix / width;
1090-
fourScanPanel->drawPixelRGB888(int16_t(x), int16_t(y), r, g, b);
1091-
} else {
1092-
int width = _panelWidth;
1093-
int x = pix % width;
1094-
int y = pix / width;
1095-
display->drawPixelRGB888(int16_t(x), int16_t(y), r, g, b);
1096-
}
1097-
}
1098-
#endif
10991071
}
11001072

11011073
uint32_t IRAM_ATTR BusHub75Matrix::getPixelColor(uint16_t pix) const {

0 commit comments

Comments
 (0)