Skip to content

Commit ea2c068

Browse files
author
brentru
committed
COLMOD is 1 param, remove CASET/RASET in CircuitPython
1 parent 6a37f4f commit ea2c068

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

  • ports/atmel-samd/boards/pybadge_airlift

ports/atmel-samd/boards/pybadge_airlift/board.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ uint8_t display_init_sequence[] = {
4141
0x01, 0 | DELAY, 150, // SWRESET
4242
0x11, 0 | DELAY, 255, // SLPOUT
4343
0x36, 1, 0x08, // _MADCTL bottom to top refresh in vsync aligned order.
44-
0x3a, 2, 0x55, 10, // COLMOD - 16bit color
45-
0x2a, 3, 0x00, 240 >> 8, 240 & 0xFF, // _CASET XSTART = 0, XEND = 240
46-
0x2b, 3, 0x00, 320 >> 8, 320 & 0xFF, // _RASET YSTART = 0, YEND = 320
47-
0x21, 0 | DELAY, 10, // _INVON
48-
0x13, 0 | DELAY, 10, // _NORON
49-
0x29, 0 | DELAY, 255, // _DISPON
44+
0x3a, 1, 0x55, // COLMOD - 16bit color
45+
0x21, 0 | DELAY, 10, // _INVON
46+
0x13, 0 | DELAY, 10, // _NORON
47+
0x29, 0 | DELAY, 255, // _DISPON
5048
};
5149

5250
void board_init(void) {

0 commit comments

Comments
 (0)