Skip to content

Commit b46cb0b

Browse files
Applying fix only on GIGA Target
1 parent e989613 commit b46cb0b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

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

92+
#if defined(ARDUINO_GIGA)
9293
/* Configure SDRAM */
93-
SDRAM.begin(dsi_getFramebufferEnd()); // Moving this line from line 156 to here solves the artifacts issue
94+
SDRAM.begin(dsi_getFramebufferEnd());
95+
#endif
9496

9597
/* Video controller/bridge init */
9698
_shield->init(_edidMode);
@@ -152,6 +154,11 @@ int Arduino_H7_Video::begin() {
152154
disp_drv.sw_rotate = 1;
153155
lv_disp_drv_register(&disp_drv); /* Finally register the driver */
154156

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+
155162
#endif
156163
#endif
157164

0 commit comments

Comments
 (0)