From 53fa65e318efc6ac17ae904e1e60cb91aa2ac954 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 15 Feb 2019 13:51:54 -0800 Subject: [PATCH] Speed up pyportal by writing memory on the same access as our rotation. --- ports/atmel-samd/boards/pyportal/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/atmel-samd/boards/pyportal/board.c b/ports/atmel-samd/boards/pyportal/board.c index d9631e2dc9..d2c328850b 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