This is a simple example that shows how to simulate an LCD or OLED display to render graphics using the U8g2 and SDL2 libraries. This simulation is useful for creating demos without needing a microcontroller.
I discovered that the U8g2 repository has examples showing how to simulate displays with the SDL2 library. This inspired me to create and test my U8g2 projects on a PC first, before moving the code to a microcontroller. The main advantage of this method is the ability to code and test much faster, which also simplifies the entire debugging process.
You can find a complete explanation in my repository on how to set up the SDL2 and U8g2 libraries to simulate a screen and display graphics on your PC. Below is a screenshot of the simulation running.
I hope this setup proves useful in your future projects.