Skip to content

Commit a4d86b9

Browse files
authored
Merge pull request #2777 from pewpew-game/master
Fix RGB/BGR colors in Stage
2 parents 2c92bef + 43022d8 commit a4d86b9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
*
44
* The MIT License (MIT)
55
*
6-
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
6+
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries, 2020 Radomir
7+
* Dopieralski
78
*
89
* Permission is hereby granted, free of charge, to any person obtaining a copy
910
* of this software and associated documentation files (the "Software"), to deal
@@ -79,7 +80,7 @@ uint8_t display_init_sequence[] = {
7980
0xc4, 2, 0x8a, 0xee,
8081
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
8182
0x2a, 0, // _INVOFF
82-
0x36, 1, 0xa8, // _MADCTL
83+
0x36, 1, 0xa0, // _MADCTL
8384
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 cycle osc equalie,
8485
// fix on VTL
8586
0x3a, 1, 0x05, // COLMOD - 16bit color

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
*
44
* The MIT License (MIT)
55
*
6-
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
6+
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries, 2020 Radomir
7+
* Dopieralski
78
*
89
* Permission is hereby granted, free of charge, to any person obtaining a copy
910
* of this software and associated documentation files (the "Software"), to deal
@@ -52,7 +53,7 @@ uint8_t display_init_sequence[] = {
5253
0xc4, 2, 0x8a, 0xee,
5354
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
5455
0x2a, 0, // _INVOFF
55-
0x36, 1, 0xa0, // _MADCTL bottom to top refresh
56+
0x36, 1, 0xa8, // _MADCTL bottom to top refresh
5657
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie,
5758
// fix on VTL
5859
0x3a, 1, 0x05, // COLMOD - 16bit color

0 commit comments

Comments
 (0)