Skip to content

Commit 365e323

Browse files
committed
Revert "Update ESP32-HUB75-MatrixPanel-I2S-DMA.cpp"
This reverts commit f3302c9.
1 parent 9511e99 commit 365e323

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ESP32-HUB75-MatrixPanel-I2S-DMA.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -519,12 +519,7 @@ void MatrixPanel_I2S_DMA::updateMatrixDMABuffer(int16_t x_coord, int16_t y_coord
519519
// update address/control bits
520520
v &= BITMASK_CTRL_CLEAR; // reset ABCDE,EO,LAT address bits
521521

522-
// normally output current rows ADDX, special case for LSB, output previous row's ADDX (as previous row is being displayed for one latch cycle)
523-
// uint16_t _y = (color_depth_idx == 0) ?
524-
// gpioRowAddress = y_coord-1;
525-
526-
//uint16_t _y = color_depth_idx ? y_coord : y_coord -1;
527-
uint16_t _y = y_coord;
522+
uint16_t _y = color_depth_idx ? y_coord : y_coord -1;
528523
v|=_y << BITS_ADDR_OFFSET; // shift row coord to match ABCDE bits from bit positions 8 to 12 and set bitvector
529524

530525
// drive latch while shifting out last bit of RGB data
@@ -611,8 +606,7 @@ void MatrixPanel_I2S_DMA::updateMatrixDMABuffer(uint8_t red, uint8_t green, uint
611606
} else {
612607

613608
// Set ABCDE address bits vector
614-
//uint16_t _y = color_depth_idx ? matrix_frame_parallel_row : matrix_frame_parallel_row -1;
615-
uint16_t _y = matrix_frame_parallel_row;
609+
uint16_t _y = color_depth_idx ? matrix_frame_parallel_row : matrix_frame_parallel_row -1;
616610
_y <<= BITS_ADDR_OFFSET; // shift row y-coord to match ABCDE bits in vector from 8 to 12
617611

618612
for(uint16_t x_coord=0; x_coord < MATRIX_WIDTH; x_coord++) {

0 commit comments

Comments
 (0)