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/terminalio | |
| 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/terminalio')
| -rw-r--r-- | shared-module/terminalio/Terminal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/terminalio/Terminal.c b/shared-module/terminalio/Terminal.c index 7adf9d032..86c3e903e 100644 --- a/shared-module/terminalio/Terminal.c +++ b/shared-module/terminalio/Terminal.c @@ -35,6 +35,8 @@ void common_hal_terminalio_terminal_construct(terminalio_terminal_obj_t *self, d self->font = font; self->tilegrid = tilegrid; self->first_row = 0; + + common_hal_displayio_tilegrid_set_top_left(self->tilegrid, 0, 1); } size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *self, const byte *data, size_t len, int *errcode) { |
