diff options
| author | Michael Welling <mwelling@ieee.org> | 2020-02-02 22:01:09 -0800 |
|---|---|---|
| committer | Michael Welling <mwelling@ieee.org> | 2020-02-02 22:14:10 -0800 |
| commit | 64cafe82bcbffc54d882765d47df4a093b6e43aa (patch) | |
| tree | c59b816ce9cb18f32c92ea2d5d75d6fe334a9aad | |
| parent | 6804b2a7fd1c6c167e1f10316655e2ffaaca1f73 (diff) | |
Adjust OHS2020 madctl for default rotation
Make to go faster I guess.
Signed-off-by: Michael Welling <mwelling@ieee.org>
| -rw-r--r-- | ports/nrf/boards/ohs2020_badge/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/nrf/boards/ohs2020_badge/board.c b/ports/nrf/boards/ohs2020_badge/board.c index 4ea11f163..7e3e05814 100644 --- a/ports/nrf/boards/ohs2020_badge/board.c +++ b/ports/nrf/boards/ohs2020_badge/board.c @@ -40,7 +40,7 @@ displayio_fourwire_obj_t board_display_obj; uint8_t display_init_sequence[] = { 0x01, 0 | DELAY, 150, // SWRESET 0x11, 0 | DELAY, 255, // SLPOUT - 0x36, 1, 0x00, // _MADCTL bottom to top refresh in vsync aligned order. + 0x36, 1, 0b10100000, // _MADCTL bottom to top refresh in vsync aligned order. 0x3a, 1, 0x55, // COLMOD - 16bit color 0x21, 0 | DELAY, 10, // _INVON 0x13, 0 | DELAY, 10, // _NORON @@ -67,9 +67,9 @@ void board_init(void) { bus, 240, // Width (after rotation) 240, // Height (after rotation) - 0, // column start + 80, // column start 0, // row start - 270, // rotation + 0, // rotation 16, // Color depth false, // Grayscale false, // Pixels in a byte share a row. Only used for depth < 8 |
