8000 Merge pull request #2599 from ladyada/master · pdp7/circuitpython@71672fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 71672fd

Browse files
authored
Merge pull request adafruit#2599 from ladyada/master
update rotation so 0 is the default, for much faster ondiskbitmaps
2 parents b245f9c + 789e311 commit 71672fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
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, 0x00, // _MADCTL top to bottom refresh in vsync aligned order.
55+
0x36, 1, 0b10100000, // _MADCTL for rotation 0
5656
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie,
5757
// fix on VTL
5858
0x3a, 1, 0x05, // COLMOD - 16bit color
@@ -92,7 +92,7 @@ void board_init(void) {
9292
128, // Height (after rotation)
9393
0, // column start
9494
0, // row start
95-
270, // rotation
95+
0, // rotation
9696
16, // Color depth
9797
false, // grayscale
9898
false, // pixels in byte share row. only used for depth < 8

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

Lines changed: 2 additions & 2 deletions
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, 0x00, // _MADCTL top to bottom refresh in vsync aligned order.
55+
0x36, 1, 0b10100000, // _MADCTL for rotation 0
5656
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie,
5757
// fix on VTL
5858
0x3a, 1, 0x05, // COLMOD - 16bit color
@@ -92,7 +92,7 @@ void board_init(void) {
9292
128, // Height
9393
0, // column start
9494
0, // row start
95-
270, // rotation
95+
0, // rotation
9696
16, // Color depth
9797
false, // Grayscale
9898
false, // pixels in a byte share a row. Only valid for depths < 8

0 commit comments

Comments
 (0)
0