diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-07-05 19:01:54 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-07-19 16:06:11 -0700 |
| commit | 6797ec6ed396f65916fe816f8b2b49114253dd86 (patch) | |
| tree | 31f26206469b803be6d1ef3d5d5b61c27e2fff0b /shared-module/displayio/Display.h | |
| parent | a98bfa628e9f4469bbad5bafb042d7a2c3c15346 (diff) | |
Add support for grayscale displays that are < 8 bit depth.
This also improves Palette so it stores the original RGB888 colors.
Lastly, it adds I2CDisplay as a display bus to talk over I2C. Particularly
useful for the SSD1306.
Fixes #1828. Fixes #1956
Diffstat (limited to 'shared-module/displayio/Display.h')
| -rw-r--r-- | shared-module/displayio/Display.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared-module/displayio/Display.h b/shared-module/displayio/Display.h index fa8902ced..96d1c06d5 100644 --- a/shared-module/displayio/Display.h +++ b/shared-module/displayio/Display.h @@ -52,11 +52,13 @@ typedef struct { uint64_t last_backlight_refresh; displayio_buffer_transform_t transform; displayio_area_t area; + mp_float_t current_brightness; uint16_t width; uint16_t height; - uint16_t color_depth; + _displayio_colorspace_t colorspace; int16_t colstart; int16_t rowstart; + uint16_t brightness_command; uint8_t set_column_command; uint8_t set_row_command; uint8_t write_ram_command; |
