-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Giga Display going white with LVGL v9.2.2—what is causing this? #1004
Comments
Hi @littlejohn657, Additionally, the Take a look at this example, LVGLDemo.ino, and this tutorial to get started with Arduino_H7_Video and LVGL on the Giga Display Shield. Here’s a minimal sketch to display a black screen with a "Hello world" label centered on it:
|
I have a similar but sporadic issue. I get sporadic failures where the device starts and the screen goes white. For me this doesn't happen very often, maybe once every two weeks. When this happens the system continues to run as normal but the display remains white. This didn't used to happen. This changed when I fixed an issue in dsi_init where it was supposed to return a value according to the function signature but it didn't. Since doing this fix (which was absolutely the right thing to do - bugs like this will cause problems with a modern optimiser) I've had the issue. I think my fix just just exposed the bug you are seeing. At the point this white screen is happening in my code almost nothing has happened other than it has started up and initialised the display. It may have drawn the first frame of a splash screen but I can't tell :) This issue occurs across all three Giga devices I have access to. I am currently running a giga restarting through the night with a webcam to see how often it fails so can I can then back out my fix and know with confidence reintroducing the bug in dsi_init solves the problem. I'm using lvgl 8. |
Hi @schnoberts1, |
I have posted here https://forum.arduino.cc/t/random-white-screen-on-start-up/1341499 |
I am having trouble with the screen turning white immediately on startup and not showing anything. I'm using an Arduino Giga with an Arduino Giga Display Shield, LVGL v9.2.2, and Arduino_H7_Video.
To test the display buffer, I replaced the code in the display buffer to colour the screen red (i.e., replaced the code in the second for loop with
Display.set(x, y, 255, 0, 0);
). I saw the red streak through the display in blocks, and then the blocks be trailed almost immediately by black as the red continued down the screen (whether or not I had the code forlv_obj_t * screen_black = lv_obj_create(NULL);
there or not), then the screen turned white. I also put a serial print in the flush callback that was outputting to the monitor. So I know that the flush callback is being called and is working.If I replace
lv_obj_t * screen_black = lv_obj_create(NULL);
withlv_obj_t * screen_black = lv_obj_create(lv_screen_active());
, leave the rest of the code for the screen obj, and remove the code for creating the display and buffers, the screen does appropriately turn black (with a small white border).Any ideas of what might be going on here?
The text was updated successfully, but these errors were encountered: