Skip to content

Commit

Permalink
Applying fix only on GIGA Target
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgetrujilloroman committed Dec 10, 2024
1 parent e989613 commit b46cb0b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ int Arduino_H7_Video::begin() {
textFont(Font_5x7);
#endif

#if defined(ARDUINO_GIGA)
/* Configure SDRAM */
SDRAM.begin(dsi_getFramebufferEnd()); // Moving this line from line 156 to here solves the artifacts issue
SDRAM.begin(dsi_getFramebufferEnd());
#endif

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

#if !defined(ARDUINO_GIGA)
/* Configure SDRAM */
SDRAM.begin(dsi_getFramebufferEnd()); //FIXME: SDRAM init after video controller init can cause display glitch at start-up
#endif

#endif
#endif

Expand Down

0 comments on commit b46cb0b

Please sign in to comment.