Skip to content

Commit

Permalink
Added yield in count_pixels so that ESP8266 does not hit WDT.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmerlin committed Oct 18, 2020
1 parent fe59426 commit 9a81eed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/MatrixGFXDemo/MatrixGFXDemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ void count_pixels() {
// depending on the matrix size, it's too slow to display each pixel, so
// make the scan init faster. This will however be too fast on a small matrix.
if (!(j%7)) matrix->show();
yield();
}
}
}
Expand Down

0 comments on commit 9a81eed

Please sign in to comment.