Skip to content

Commit f7fee48

Browse files
Merge pull request #1000 from Jorgetrujilloroman/main
Moving SDRAM.begin() on Arduino_H7_Video - Artifacts Issue Fix
2 parents 06d7756 + b46cb0b commit f7fee48

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp

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

92+
#if defined(ARDUINO_GIGA)
93+
/* Configure SDRAM */
94+
SDRAM.begin(dsi_getFramebufferEnd());
95+
#endif
96+
9297
/* Video controller/bridge init */
9398
_shield->init(_edidMode);
9499

@@ -149,12 +154,14 @@ int Arduino_H7_Video::begin() {
149154
disp_drv.sw_rotate = 1;
150155
lv_disp_drv_register(&disp_drv); /* Finally register the driver */
151156

157+
#if !defined(ARDUINO_GIGA)
158+
/* Configure SDRAM */
159+
SDRAM.begin(dsi_getFramebufferEnd()); //FIXME: SDRAM init after video controller init can cause display glitch at start-up
160+
#endif
161+
152162
#endif
153163
#endif
154164

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

0 commit comments

Comments
 (0)