rgbmatrix: Disable timer while reconstructing the display
This commit is contained in:
parent
dfa90cc11d
commit
ce603dfebf
@ -66,6 +66,7 @@ void common_hal_rgbmatrix_rgbmatrix_construct(rgbmatrix_rgbmatrix_obj_t *self, i
|
||||
}
|
||||
|
||||
void common_hal_rgbmatrix_rgbmatrix_reconstruct(rgbmatrix_rgbmatrix_obj_t* self, mp_obj_t framebuffer) {
|
||||
common_hal_rgbmatrix_timer_disable(self->timer);
|
||||
if (framebuffer) {
|
||||
self->framebuffer = framebuffer;
|
||||
framebuffer = mp_obj_new_bytearray_of_zeros(self->bufsize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user