facing issue while using LVGL sample with ssd1306 oled display

I hope this message finds you well.

I am currently encountering an issue while attempting to use an LVGL (LittlevGL) sample code with an SSD1306 OLED display. I have followed the instructions provided in the LVGL documentation and attempted to run the sample code on my setup, but I am encountering difficulties in getting the display to work as expected.

Specifically, the issues I am facing include:

  1. Display Initialization: I am having trouble initializing the SSD1306 OLED display correctly with LVGL. Despite following the sample code and documentation, the display remains blank or shows unexpected behavior.

  2. Communication Protocol: I am unsure whether the SPI or I2C communication protocol should be used for interfacing the SSD1306 OLED display with LVGL. I have attempted both approaches but have not been successful in getting the display to function properly.

  3. Code Compatibility: I am using the latest version of LVGL and have downloaded the sample code provided for SSD1306 displays. However, I suspect there may be compatibility issues or configuration settings that need to be adjusted for my specific setup.

  4. Troubleshooting Steps: I have attempted to debug the issue by checking the wiring connections, reviewing the LVGL documentation, and searching for similar issues online. However, I have not been able to identify the root cause of the problem.

If any members of the DevZone community have experience with LVGL and SSD1306 OLED displays or have encountered similar issues in the past, I would greatly appreciate any guidance, advice, or troubleshooting steps you can provide.

Additionally, if anyone has successfully implemented LVGL with an SSD1306 OLED display and has access to working code examples or configuration settings, I would be grateful for any assistance in this regard.

Thank you in advance for your support and expertise. Your insights will be instrumental in helping me overcome this challenge and move forward with my project.

Best regards, Aman