Led Matrix : random bits on lines or columns #226
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
When using ArduinoGraphics on the Led Matrix and doing a scroll left random bits are showing in the RIGHT columns. This is happening as well when doing a scroll up, on the bottom lines.
It was noticed already doing development given the remark in the function
endDraw()
inArduino_LED_matrix.h
:ArduinoCore-renesas/libraries/Arduino_LED_Matrix/src/Arduino_LED_Matrix.h
Line 266 in 6ee152f
The root cause is related to ArduinoGraphics as it returns NEGATIVE numbers when scrolling. In the function
set()
inArduino_led_matrix.h
it checks for out of bound values, BUT not for negative values for Y and X. Then when doing a_canvasBuffer[y][x]
will cause under desired memory to be written.Solution :
change in function
set()
, line 251 from:ArduinoCore-renesas/libraries/Arduino_LED_Matrix/src/Arduino_LED_Matrix.h
Line 251 in 6ee152f
to:
The text was updated successfully, but these errors were encountered: