summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-11-11 16:53:45 -0800
committerScott Shawcroft <scott@tannewt.org>2020-11-13 18:57:52 -0800
commit78ccac930fbcb3dddd3a1a79809a2ec371d34c6a (patch)
tree4e03a06e71d2b83c62bab3d926bae2aef9f16bce /shared-module
parent8d4296f96430795936a22769da35732e5342b25c (diff)
Add .busy property to EPaperDisplay
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/displayio/EPaperDisplay.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-module/displayio/EPaperDisplay.c b/shared-module/displayio/EPaperDisplay.c
index acca92ac1..1b285b4b1 100644
--- a/shared-module/displayio/EPaperDisplay.c
+++ b/shared-module/displayio/EPaperDisplay.c
@@ -360,6 +360,11 @@ void displayio_epaperdisplay_background(displayio_epaperdisplay_obj_t* self) {
}
}
+bool common_hal_displayio_epaperdisplay_get_busy(displayio_epaperdisplay_obj_t* self) {
+ displayio_epaperdisplay_background(self);
+ return self->refreshing;
+}
+
void release_epaperdisplay(displayio_epaperdisplay_obj_t* self) {
if (self->refreshing) {
wait_for_busy(self);