Skip to content

Commit

Permalink
Moving SDRAM.begin() on Arduino_H7_Video library
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgetrujilloroman committed Nov 28, 2024
1 parent 06d7756 commit e989613
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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,9 @@ int Arduino_H7_Video::begin() {
textFont(Font_5x7);
#endif

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

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

Expand Down Expand Up @@ -152,9 +155,6 @@ int Arduino_H7_Video::begin() {
#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 e989613

Please sign in to comment.