Update ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
This commit is contained in:
parent
09301f7562
commit
41e5901805
1 changed files with 3 additions and 2 deletions
|
@ -768,9 +768,10 @@ void MatrixPanel_I2S_DMA::brtCtrlOE(int brt, const bool _buff_id){
|
||||||
if(coloridx && coloridx <= lsbMsbTransitionBit) {
|
if(coloridx && coloridx <= lsbMsbTransitionBit) {
|
||||||
// divide brightness in half for each bit below lsbMsbTransitionBit
|
// divide brightness in half for each bit below lsbMsbTransitionBit
|
||||||
int lsbBrightness = brt >> (lsbMsbTransitionBit - coloridx + 1);
|
int lsbBrightness = brt >> (lsbMsbTransitionBit - coloridx + 1);
|
||||||
if((x_coord) >= lsbBrightness)
|
if((x_coord) >= lsbBrightness) {
|
||||||
row[x_coord] |= BIT_OE; // Disable output after this point.
|
row[x_coord] |= BIT_OE; // Disable output after this point.
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear OE bit for all other pixels
|
// clear OE bit for all other pixels
|
||||||
|
|
Loading…
Reference in a new issue