8000 rgbmatrix: Disable timer while reconstructing the display · dastels/circuitpython@ce603df · GitHub
[go: up one dir, main page]

Skip to content

Commit ce603df

Browse files
committed
rgbmatrix: Disable timer while reconstructing the display
1 parent dfa90cc commit ce603df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shared-module/rgbmatrix/RGBMatrix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ void common_hal_rgbmatrix_rgbmatrix_construct(rgbmatrix_rgbmatrix_obj_t *self, i
6666
}
6767

6868
void common_hal_rgbmatrix_rgbmatrix_reconstruct(rgbmatrix_rgbmatrix_obj_t* self, mp_obj_t framebuffer) {
69+
common_hal_rgbmatrix_timer_disable(self->timer);
6970
if (framebuffer) {
7071
self->framebuffer = framebuffer;
7172
framebuffer = mp_obj_new_bytearray_of_zeros(self->bufsize);

0 commit comments

Comments
 (0)
0