aboutsummaryrefslogtreecommitdiff
path: root/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2023-08-10 08:35:22 +0100
committerGitHub <noreply@github.com>2023-08-10 08:35:22 +0100
commit9943fcd97d09c2058b6ff278695dab75a2dc8f77 (patch)
treee5da5fe7a3672d13dd192946b7b0353dc77e270f /src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
parent3d7c2dfa4f3305ed80a5a86401e7ef9ed68e8038 (diff)
parent9b4926978e223b3d02dc93370a9e36d23669fc55 (diff)
Merge pull request #487 from beta-tester/master
minimal optimization and adjustment
Diffstat (limited to 'src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp')
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
index c2a725e..85fb055 100644
--- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
+++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
@@ -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,