summaryrefslogtreecommitdiff
path: root/shared-bindings/displayio/Display.h
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-03-07 00:08:16 -0500
committerDan Halbert <halbert@halwitz.org>2019-03-07 00:08:16 -0500
commit1f31877d5519813f94feabf3aedfd21e9461ce17 (patch)
tree70a2f86ec0d856ca5c4f770853ce9a010adcd4fd /shared-bindings/displayio/Display.h
parentc854f6617a0b343333635fe0cc91419daff7cdd5 (diff)
Rework background display task to allow reads from SPI SD card during display. Clarify code. Handle multiple displays better.
Diffstat (limited to 'shared-bindings/displayio/Display.h')
-rw-r--r--shared-bindings/displayio/Display.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/shared-bindings/displayio/Display.h b/shared-bindings/displayio/Display.h
index 8c9e7fc13..7d6444a2d 100644
--- a/shared-bindings/displayio/Display.h
+++ b/shared-bindings/displayio/Display.h
@@ -48,13 +48,15 @@ void common_hal_displayio_display_show(displayio_display_obj_t* self, displayio_
void common_hal_displayio_display_refresh_soon(displayio_display_obj_t* self);
-bool displayio_display_start_region_update(displayio_display_obj_t* self, uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
-void displayio_display_finish_region_update(displayio_display_obj_t* self);
+bool displayio_display_begin_transaction(displayio_display_obj_t* self);
+void displayio_display_end_transaction(displayio_display_obj_t* self);
+
+void displayio_display_set_region_to_update(displayio_display_obj_t* self, uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
bool displayio_display_frame_queued(displayio_display_obj_t* self);
bool displayio_display_refresh_queued(displayio_display_obj_t* self);
void displayio_display_finish_refresh(displayio_display_obj_t* self);
-bool displayio_display_send_pixels(displayio_display_obj_t* self, uint32_t* pixels, uint32_t length);
+void displayio_display_send_pixels(displayio_display_obj_t* self, uint32_t* pixels, uint32_t length);
bool common_hal_displayio_display_get_auto_brightness(displayio_display_obj_t* self);
void common_hal_displayio_display_set_auto_brightness(displayio_display_obj_t* self, bool auto_brightness);