From e989613958c4ee2ba0bf963f272498ee55cdaa20 Mon Sep 17 00:00:00 2001 From: Jorge Trujillo Date: Thu, 28 Nov 2024 14:48:36 +0100 Subject: [PATCH] Moving SDRAM.begin() on Arduino_H7_Video library --- libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp b/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp index f6199a18d..2e55bb562 100644 --- a/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp +++ b/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp @@ -89,6 +89,9 @@ int Arduino_H7_Video::begin() { textFont(Font_5x7); #endif + /* Configure SDRAM */ + SDRAM.begin(dsi_getFramebufferEnd()); // Moving this line from line 156 to here solves the artifacts issue + /* Video controller/bridge init */ _shield->init(_edidMode); @@ -152,9 +155,6 @@ int Arduino_H7_Video::begin() { #endif #endif - /* Configure SDRAM */ - SDRAM.begin(dsi_getFramebufferEnd()); //FIXME: SDRAM init after video controller init can cause display glitch at start-up - return 0; }