Skip to content

Commit

Permalink
Merge pull request #1000 from Jorgetrujilloroman/main
Browse files Browse the repository at this point in the history
Moving SDRAM.begin() on Arduino_H7_Video - Artifacts Issue Fix
  • Loading branch information
leonardocavagnis authored Dec 10, 2024
2 parents 06d7756 + b46cb0b commit f7fee48
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ int Arduino_H7_Video::begin() {
textFont(Font_5x7);
#endif

#if defined(ARDUINO_GIGA)
/* Configure SDRAM */
SDRAM.begin(dsi_getFramebufferEnd());
#endif

/* Video controller/bridge init */
_shield->init(_edidMode);

Expand Down Expand Up @@ -149,12 +154,14 @@ 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

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

return 0;
}

Expand Down

0 comments on commit f7fee48

Please sign in to comment.