diff options
| author | brentru <robots199@me.com> | 2019-06-17 11:20:25 -0400 |
|---|---|---|
| committer | brentru <robots199@me.com> | 2019-06-17 11:20:25 -0400 |
| commit | ea2c068e11558544eaa5e1d096d50f4a5f92549e (patch) | |
| tree | e96a997fc4d68bf220b5adac9648e7eb52ff69c9 | |
| parent | 6a37f4f7b1a359793a0d20246aaf59bbfb1495d5 (diff) | |
COLMOD is 1 param, remove CASET/RASET in CircuitPython
| -rw-r--r-- | ports/atmel-samd/boards/pybadge_airlift/board.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ports/atmel-samd/boards/pybadge_airlift/board.c b/ports/atmel-samd/boards/pybadge_airlift/board.c index b34ac2921..3c2be4b7b 100644 --- a/ports/atmel-samd/boards/pybadge_airlift/board.c +++ b/ports/atmel-samd/boards/pybadge_airlift/board.c @@ -41,12 +41,10 @@ uint8_t display_init_sequence[] = { 0x01, 0 | DELAY, 150, // SWRESET 0x11, 0 | DELAY, 255, // SLPOUT 0x36, 1, 0x08, // _MADCTL bottom to top refresh in vsync aligned order. - 0x3a, 2, 0x55, 10, // COLMOD - 16bit color - 0x2a, 3, 0x00, 240 >> 8, 240 & 0xFF, // _CASET XSTART = 0, XEND = 240 - 0x2b, 3, 0x00, 320 >> 8, 320 & 0xFF, // _RASET YSTART = 0, YEND = 320 - 0x21, 0 | DELAY, 10, // _INVON - 0x13, 0 | DELAY, 10, // _NORON - 0x29, 0 | DELAY, 255, // _DISPON + 0x3a, 1, 0x55, // COLMOD - 16bit color + 0x21, 0 | DELAY, 10, // _INVON + 0x13, 0 | DELAY, 10, // _NORON + 0x29, 0 | DELAY, 255, // _DISPON }; void board_init(void) { |
