adjust color range for NO_CIE1931 in updateMatrixDMABuffer()
red16, green16, blue16 never reached maximum 0xFFFF value in NO_CIE1931
This commit is contained in:
parent
0429850835
commit
3fc222ff75
1 changed files with 3 additions and 3 deletions
|
@ -347,9 +347,9 @@ void IRAM_ATTR MatrixPanel_I2S_DMA::updateMatrixDMABuffer(uint16_t x_coord, uint
|
|||
green16 = lumConvTab[green];
|
||||
blue16 = lumConvTab[blue];
|
||||
#else
|
||||
red16 = red << 8;
|
||||
green16 = green << 8;
|
||||
blue16 = blue << 8;
|
||||
red16 = red << 8 | red;
|
||||
green16 = green << 8 | green;
|
||||
blue16 = blue << 8 | blue;
|
||||
#endif
|
||||
|
||||
/* When using the drawPixel, we are obviously only changing the value of one x,y position,
|
||||
|
|
Loading…
Reference in a new issue