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; }