Update ESP32-HUB75-MatrixPanel-I2S-DMA.cpp

This commit is contained in:
mrfaptastic 2022-01-03 14:32:13 +00:00 committed by GitHub
parent 09301f7562
commit 41e5901805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -768,9 +768,10 @@ void MatrixPanel_I2S_DMA::brtCtrlOE(int brt, const bool _buff_id){
if(coloridx && coloridx <= lsbMsbTransitionBit) {
// divide brightness in half for each bit below lsbMsbTransitionBit
int lsbBrightness = brt >> (lsbMsbTransitionBit - coloridx + 1);
if((x_coord) >= lsbBrightness)
if((x_coord) >= lsbBrightness) {
row[x_coord] |= BIT_OE; // Disable output after this point.
continue;
}
}
// clear OE bit for all other pixels
@ -1029,4 +1030,4 @@ void MatrixPanel_I2S_DMA::fillRectDMA(int16_t x, int16_t y, int16_t w, int16_t h
}
}
#endif // NO_FAST_FUNCTIONS
#endif // NO_FAST_FUNCTIONS