adjust color range for NO_CIE1931 in updateMatrixDMABuffer()

red16, green16, blue16 never reached maximum 0xFFFF value in NO_CIE1931
This commit is contained in:
beta-tester 2023-08-08 23:11:35 +02:00 committed by GitHub
parent 0429850835
commit 3fc222ff75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,9 +347,9 @@ void IRAM_ATTR MatrixPanel_I2S_DMA::updateMatrixDMABuffer(uint16_t x_coord, uint
green16 = lumConvTab[green]; green16 = lumConvTab[green];
blue16 = lumConvTab[blue]; blue16 = lumConvTab[blue];
#else #else
red16 = red << 8; red16 = red << 8 | red;
green16 = green << 8; green16 = green << 8 | green;
blue16 = blue << 8; blue16 = blue << 8 | blue;
#endif #endif
/* When using the drawPixel, we are obviously only changing the value of one x,y position, /* When using the drawPixel, we are obviously only changing the value of one x,y position,