Skip to content

Commit f39ca60

Browse files
committed
Fix RGB/BGR colors in Stage
This makes the colors used by the stage library compatible with those used by the displayio library.
1 parent ae549fc commit f39ca60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ uint8_t display_init_sequence[] = {
7979
0xc4, 2, 0x8a, 0xee,
8080
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
8181
0x2a, 0, // _INVOFF
82-
0x36, 1, 0xa8, // _MADCTL
82+
0x36, 1, 0xa0, // _MADCTL
8383
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 cycle osc equalie,
8484
// fix on VTL
8585
0x3a, 1, 0x05, // COLMOD - 16bit color

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ uint8_t display_init_sequence[] = {
5252
0xc4, 2, 0x8a, 0xee,
5353
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
5454
0x2a, 0, // _INVOFF
55-
0x36, 1, 0xa0, // _MADCTL bottom to top refresh
55+
0x36, 1, 0xa8, // _MADCTL bottom to top refresh
5656
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie,
5757
// fix on VTL
5858
0x3a, 1, 0x05, // COLMOD - 16bit color

0 commit comments

Comments
 (0)