handclang

This commit is contained in:
lady ada 2021-06-07 12:39:59 -04:00
parent 3890271f19
commit 2ff9e9766f
2 changed files with 3 additions and 3 deletions

View File

@ -38,6 +38,6 @@ bool board_requests_safe_mode(void) {
} }
void reset_board(void) { void reset_board(void) {
// turn off any left over LED // turn off any left over LED
board_reset_user_neopixels(&pin_GPIO19, 12); board_reset_user_neopixels(&pin_GPIO19, 12);
} }

View File

@ -249,7 +249,7 @@ STATIC bool _refresh_area(displayio_display_obj_t *self, const displayio_area_t
// for SH1107 and other boundary constrained controllers // for SH1107 and other boundary constrained controllers
// write one single row at a time // write one single row at a time
if (self->SH1107_addressing) { if (self->SH1107_addressing) {
subrectangles = rows_per_buffer/8; // vertical (column mode) write each separately (height times) subrectangles = rows_per_buffer / 8; // vertical (column mode) write each separately (height times)
rows_per_buffer = 8; rows_per_buffer = 8;
} else if (displayio_area_size(&clipped) > buffer_size * pixels_per_word) { } else if (displayio_area_size(&clipped) > buffer_size * pixels_per_word) {
rows_per_buffer = buffer_size * pixels_per_word / displayio_area_width(&clipped); rows_per_buffer = buffer_size * pixels_per_word / displayio_area_width(&clipped);