Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/MatrixTeensy4Hub75Calc_Impl.h b/src/MatrixTeensy4Hub75Calc_Impl.h
- index a5afc66..46ca838 100644
- --- a/src/MatrixTeensy4Hub75Calc_Impl.h
- +++ b/src/MatrixTeensy4Hub75Calc_Impl.h
- @@ -168,7 +168,13 @@ FASTRUN void SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panel
- SmartMatrixHub75Calc<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::loadMatrixBuffers(currentRow);
- SmartMatrixRefreshT4<refreshDepth, matrixWidth, matrixHeight, panelType, optionFlags>::writeRowBuffer(currentRow);
- - if (++currentRow >= MATRIX_SCAN_MOD) currentRow = 0;
- + static unsigned int rowCounter = 0;
- + if (rowCounter & 1) {
- + currentRow = MATRIX_SCAN_MOD - 1 - (rowCounter / 2);
- + } else {
- + currentRow = rowCounter / 2;
- + }
- + if (++rowCounter >= MATRIX_SCAN_MOD) rowCounter = 0;
- if (dmaBufferUnderrun) {
- // if refreshrate is too high, lower - minimum set to avoid overflowing timer at low refresh rates
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement