From 448ae64d8e2eb0cce9c5bd9dabd7f2354bb48682 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 1 Feb 2019 00:32:03 -0800 Subject: Add support for display rotation and raw commands Display rotation is relative to the scan order of the display. The scan order can be found by scrolling the display with command 0x37 `display_bus.send(0x37, struct.pack(">H", i % 128))` Fixes #1504 --- shared-module/displayio/Display.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared-module/displayio/Display.h') diff --git a/shared-module/displayio/Display.h b/shared-module/displayio/Display.h index 0d7393aff..04da68b63 100644 --- a/shared-module/displayio/Display.h +++ b/shared-module/displayio/Display.h @@ -59,6 +59,9 @@ typedef struct { uint64_t last_backlight_refresh; bool auto_brightness:1; bool updating_backlight:1; + bool mirror_x; + bool mirror_y; + bool transpose_xy; } displayio_display_obj_t; void displayio_display_update_backlight(displayio_display_obj_t* self); -- cgit v1.2.3