Skip to content

Commit ec21dc6

Browse files
committed
added debug prints
1 parent 4712a9d commit ec21dc6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

shared-module/displayio/TileGrid.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,11 @@ bool displayio_tilegrid_fill_area(displayio_tilegrid_t *self,
555555
}
556556

557557
void displayio_tilegrid_finish_refresh(displayio_tilegrid_t *self) {
558+
559+
mp_printf(&mp_plat_print, "(cx1: %d, cy1: %d )\n", self->current_area.x1, self->current_area.y1);
560+
//mp_printf(&mp_plat_print, "x1: %d \n", self->previous_area.x1);
561+
//mp_printf(&mp_plat_print, "(x1: %d, y1: %d),(x2: %d, y2: %d)\n", self->previous_area.x1, self->previous_area.y1, self->previous_area.x2, self->previous_area.y2);
562+
//mp_printf(&mp_plat_print, "Hello ", 1);
558563
bool first_draw = self->previous_area.x1 == self->previous_area.x2;
559564
bool hidden = self->hidden || self->hidden_by_parent;
560565
if (!first_draw && hidden) {

shared-module/displayio/__init__.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,9 @@ void reset_displays(void) {
293293
if (display_type == &displayio_display_type) {
294294
reset_display(&displays[i].display);
295295
} else if (display_type == &displayio_epaperdisplay_type) {
296-
displayio_epaperdisplay_obj_t *display = &displays[i].epaper_display;
297-
common_hal_displayio_epaperdisplay_show(display, NULL);
296+
//displayio_epaperdisplay_obj_t *display = &displays[i].epaper_display;
297+
//common_hal_displayio_epaperdisplay_show(display, NULL);
298+
mp_printf(&mp_plat_print, "Skipping EPaperDisplay show terminal\n");
298299
#if CIRCUITPY_FRAMEBUFFERIO
299300
} else if (display_type == &framebufferio_framebufferdisplay_type) {
300301
framebufferio_framebufferdisplay_reset(&displays[i].framebuffer_display);

0 commit comments

Comments
 (0)