diff options
| author | Radomir Dopieralski <openstack@sheep.art.pl> | 2020-04-15 23:41:38 +0200 |
|---|---|---|
| committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2020-04-15 23:41:38 +0200 |
| commit | f39ca6052e4fd33e3ea1d879c80e11f643d0834a (patch) | |
| tree | d4813c5a5f420083a223b6a73f0276383aeaf85f | |
| parent | ae549fc9da555778884ff64a2ffe45df0a5248db (diff) | |
Fix RGB/BGR colors in Stage
This makes the colors used by the stage library compatible with those
used by the displayio library.
| m--------- | frozen/circuitpython-stage | 0 | ||||
| -rw-r--r-- | ports/atmel-samd/boards/pewpew_m4/board.c | 2 | ||||
| -rw-r--r-- | ports/atmel-samd/boards/ugame10/board.c | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/frozen/circuitpython-stage b/frozen/circuitpython-stage -Subproject 19a66d79f0650a15e502464b42e16692365eab3 +Subproject e2a318085bad99d5eb83e3b04fb15474456b17e diff --git a/ports/atmel-samd/boards/pewpew_m4/board.c b/ports/atmel-samd/boards/pewpew_m4/board.c index cf8439cf0..0e28fe4fc 100644 --- a/ports/atmel-samd/boards/pewpew_m4/board.c +++ b/ports/atmel-samd/boards/pewpew_m4/board.c @@ -79,7 +79,7 @@ uint8_t display_init_sequence[] = { 0xc4, 2, 0x8a, 0xee, 0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V 0x2a, 0, // _INVOFF - 0x36, 1, 0xa8, // _MADCTL + 0x36, 1, 0xa0, // _MADCTL // 1 clk cycle nonoverlap, 2 cycle gate rise, 3 cycle osc equalie, // fix on VTL 0x3a, 1, 0x05, // COLMOD - 16bit color diff --git a/ports/atmel-samd/boards/ugame10/board.c b/ports/atmel-samd/boards/ugame10/board.c index 38661950f..04a4c7add 100644 --- a/ports/atmel-samd/boards/ugame10/board.c +++ b/ports/atmel-samd/boards/ugame10/board.c @@ -52,7 +52,7 @@ uint8_t display_init_sequence[] = { 0xc4, 2, 0x8a, 0xee, 0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V 0x2a, 0, // _INVOFF - 0x36, 1, 0xa0, // _MADCTL bottom to top refresh + 0x36, 1, 0xa8, // _MADCTL bottom to top refresh // 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie, // fix on VTL 0x3a, 1, 0x05, // COLMOD - 16bit color |
