Skip to content

Commit e989613

Browse files
Moving SDRAM.begin() on Arduino_H7_Video library
1 parent 06d7756 commit e989613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ int Arduino_H7_Video::begin() {
8989
textFont(Font_5x7);
9090
#endif
9191

92+
/* Configure SDRAM */
93+
SDRAM.begin(dsi_getFramebufferEnd()); // Moving this line from line 156 to here solves the artifacts issue
94+
9295
/* Video controller/bridge init */
9396
_shield->init(_edidMode);
9497

@@ -152,9 +155,6 @@ int Arduino_H7_Video::begin() {
152155
#endif
153156
#endif
154157

155-
/* Configure SDRAM */
156-
SDRAM.begin(dsi_getFramebufferEnd()); //FIXME: SDRAM init after video controller init can cause display glitch at start-up
157-
158158
return 0;
159159
}
160160

0 commit comments

Comments
 (0)