Menu of only ITEM_LABEL does not show #385
|
I thought I would make a 'splash screen' showing the name of the program and a version number that would show for a couple of seconds and then be replaced by the proper main menu. This works as I would expect if I make the splash screen from ITEM_BASICs or a mix of ITEM_BASIC and ITEM_LABEL but if it's only ITEM_LABELs then the screen remains blank. Is this by design? Is there a way round this? |
Answered by
forntoh
Jun 18, 2025
Replies: 1 comment
|
Ideally, don't use the menu system for custom drawing, just hide the menu and draw directly on the lcd display. Then after the time elapses, show the menu again. If you don't call setScreen in the setup function, the menu will not be drawn, you can then just draw on the menu, then after X seconds call setScreen lcd.setCursor(0, 0);
lcd.write("Splash Screen");
lcd.setCursor(0, 1);
lcd.write("v1.0");
delay(2000);
menu.setScreen(mainScreen); |
0 replies
Answer selected by
forntoh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ideally, don't use the menu system for custom drawing, just hide the menu and draw directly on the lcd display. Then after the time elapses, show the menu again.
If you don't call setScreen in the setup function, the menu will not be drawn, you can then just draw on the menu, then after X seconds call setScreen