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

This commit is contained in:
mrcodetastic 2025-03-17 13:59:39 +00:00 committed by GitHub
parent 84d4388e4a
commit c5fd8d2d52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -510,7 +510,6 @@ void MatrixPanel_I2S_DMA::clearFrameBuffer(bool _buff_id)
--row_idx;
ESP32_I2S_DMA_STORAGE_TYPE *row = fb->rowBits[row_idx]->getDataPtr(0); // set pointer to the HEAD of a buffer holding data for the entire matrix row
ESP32_I2S_DMA_STORAGE_TYPE abcde = (ESP32_I2S_DMA_STORAGE_TYPE)row_idx;
// get last pixel index in a row of all colourdepths
@ -520,7 +519,6 @@ void MatrixPanel_I2S_DMA::clearFrameBuffer(bool _buff_id)
do
{
--x_pixel;
if (m_cfg.driver == HUB75_I2S_CFG::SM5266P)
{
// modifications here for row shift register type SM5266P
@ -538,9 +536,8 @@ void MatrixPanel_I2S_DMA::clearFrameBuffer(bool _buff_id)
} while (x_pixel != fb->rowBits[row_idx]->width); // spare the first "width's" worth of pixels as they are the LSB pixels/colordepth
// colour_index[0] (LSB) x_pixels must be "marked" with a previous's row address, 'cause it is used to display
// previous row while we pump in MSBs's for a new row
// The colour_index[0] (LSB) x_pixels must be "marked" with a previous's row address, because it is used to display
// previous row while we pump in MSBs's for the next row.
if (row_idx == 0) {
abcde = ROWS_PER_FRAME-1; // wrap around
} else {
@ -548,7 +545,6 @@ void MatrixPanel_I2S_DMA::clearFrameBuffer(bool _buff_id)
}
abcde <<= BITS_ADDR_OFFSET; // shift row y-coord to match ABCDE bits in vector from 8 to 12
do
{
--x_pixel;