Skip to content

Commit 53fa65e

Browse files
committed
Speed up pyportal by writing memory on the same access as our rotation.
1 parent 46fd60c commit 53fa65e

File tree

1 file changed

+2
-2
lines changed
  • ports/atmel-samd/boards/pyportal

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ uint8_t display_init_sequence[] = {
4848
0xc1, 1, 0x10, // Power control SAP[2:0];BT[3:0]
4949
0xc5, 2, 0x3e, 0x28, // VCM control
5050
0xc7, 1, 0x86, // VCM control2
51-
0x36, 1, 0x08, // Memory Access Control
51+
0x36, 1, 0xa8, // Memory Access Control
5252
0x37, 1, 0x00, // Vertical scroll zero
5353
0x3a, 1, 0x55, // COLMOD: Pixel Format Set
5454
0xb1, 2, 0x00, 0x18, // Frame Rate Control (In Normal Mode/Full Colors)
@@ -82,7 +82,7 @@ void board_init(void) {
8282
240, // Height
8383
0, // column start
8484
0, // row start
85-
270, // rotation
85+
0, // rotation
8686
16, // Color depth
8787
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
8888
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command

0 commit comments

Comments
 (0)