summaryrefslogtreecommitdiff
path: root/shared-module/framebufferio/FramebufferDisplay.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-07-21 15:12:04 -0700
committerScott Shawcroft <scott@tannewt.org>2020-07-21 15:12:04 -0700
commit1b3bc980683664876c17862762fdbdd5f378ba7d (patch)
treebfb734cb54095d56451e1516c34044cfc38f5f91 /shared-module/framebufferio/FramebufferDisplay.c
parent900edb2b8e118ff36b708afe65363e5929f00ad8 (diff)
parentcb7df2e1ed7c9866b43994e4013497702d8da727 (diff)
Merge remote-tracking branch 'adafruit/main' into bytearray_find
Diffstat (limited to 'shared-module/framebufferio/FramebufferDisplay.c')
-rw-r--r--shared-module/framebufferio/FramebufferDisplay.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-module/framebufferio/FramebufferDisplay.c b/shared-module/framebufferio/FramebufferDisplay.c
index 7d09e0bae..2a90fa0d4 100644
--- a/shared-module/framebufferio/FramebufferDisplay.c
+++ b/shared-module/framebufferio/FramebufferDisplay.c
@@ -318,3 +318,8 @@ void framebufferio_framebufferdisplay_collect_ptrs(framebufferio_framebufferdisp
gc_collect_ptr(self->framebuffer);
displayio_display_core_collect_ptrs(&self->core);
}
+
+void framebufferio_framebufferdisplay_reset(framebufferio_framebufferdisplay_obj_t* self) {
+ common_hal_framebufferio_framebufferdisplay_set_auto_refresh(self, true);
+ common_hal_framebufferio_framebufferdisplay_show(self, NULL);
+}