summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-02-15 13:51:54 -0800
committerScott Shawcroft <scott@tannewt.org>2019-02-19 14:51:39 -0800
commit53fa65e318efc6ac17ae904e1e60cb91aa2ac954 (patch)
treea162c3b506d553e34e83ec3a2ae8a56a4d8063ae
parent46fd60c70398b51136a2deea84f30e867679ca53 (diff)
Speed up pyportal by writing memory on the same access as our rotation.
-rw-r--r--ports/atmel-samd/boards/pyportal/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/atmel-samd/boards/pyportal/board.c b/ports/atmel-samd/boards/pyportal/board.c
index d9631e2dc..d2c328850 100644
--- a/ports/atmel-samd/boards/pyportal/board.c
+++ b/ports/atmel-samd/boards/pyportal/board.c
@@ -48,7 +48,7 @@ uint8_t display_init_sequence[] = {
0xc1, 1, 0x10, // Power control SAP[2:0];BT[3:0]
0xc5, 2, 0x3e, 0x28, // VCM control
0xc7, 1, 0x86, // VCM control2
- 0x36, 1, 0x08, // Memory Access Control
+ 0x36, 1, 0xa8, // Memory Access Control
0x37, 1, 0x00, // Vertical scroll zero
0x3a, 1, 0x55, // COLMOD: Pixel Format Set
0xb1, 2, 0x00, 0x18, // Frame Rate Control (In Normal Mode/Full Colors)
@@ -82,7 +82,7 @@ void board_init(void) {
240, // Height
0, // column start
0, // row start
- 270, // rotation
+ 0, // rotation
16, // Color depth
MIPI_COMMAND_SET_COLUMN_ADDRESS, // Set column command
MIPI_COMMAND_SET_PAGE_ADDRESS, // Set row command