Skip to content

Commit 3aed0a1

Browse files
authored
Merge pull request #2572 from ladyada/master
adjust CLUE madctl so rotation 0 is 'right'
2 parents 19f1234 + dc964b3 commit 3aed0a1

File tree

1 file changed

+3
-3
lines changed
  • ports/nrf/boards/clue_nrf52840_express

1 file changed

+3
-3
lines changed

ports/nrf/boards/clue_nrf52840_express/board.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ displayio_fourwire_obj_t board_display_obj;
4040
uint8_t display_init_sequence[] = {
4141
0x01, 0 | DELAY, 150, // SWRESET
4242
0x11, 0 | DELAY, 255, // SLPOUT
43-
0x36, 1, 0x00, // _MADCTL bottom to top refresh in vsync aligned order.
43+
0x36, 1, 0b10100000, // _MADCTL for rotation 0
4444
0x3a, 1, 0x55, // COLMOD - 16bit color
4545
0x21, 0 | DELAY, 10, // _INVON
4646
0x13, 0 | DELAY, 10, // _NORON
@@ -67,9 +67,9 @@ void board_init(void) {
6767
bus,
6868
240, // Width (after rotation)
6969
240, // Height (after rotation)
70-
0, // column start
70+
80, // column start
7171
0, // row start
72-
270, // rotation
72+
0, // rotation
7373
16, // Color depth
7474
false, // Grayscale
7575
false, // Pixels in a byte share a row. Only used for depth < 8

0 commit comments

Comments
 (0)