diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-02-01 00:32:03 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-02-01 00:32:03 -0800 |
| commit | 448ae64d8e2eb0cce9c5bd9dabd7f2354bb48682 (patch) | |
| tree | 9f156429c3638e7149fe3e0d7e585bf1fd2462e9 /shared-module/displayio/Display.h | |
| parent | d72cd5b2d6cbc95665c41a43d6d914e71ac58017 (diff) | |
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
Diffstat (limited to 'shared-module/displayio/Display.h')
| -rw-r--r-- | shared-module/displayio/Display.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
