-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
feature-requestAdd new feature to the libraryAdd new feature to the library
Description
Is your feature request related to a problem?
I initialize the menu screen in the Setup section, but by default it shouldn't show the menu, just after button press handled in Loop.
Now after setScreen I hide it, so the screen flashes.
Describe the solution you'd like?
Add optional bool parameter to setScreen as "activate" with true as default value. If I set it to false, the menu does not shows up. Like:
void LcdMenu::setScreen(MenuScreen* screen, bool active = true) {
LOG(F("LcdMenu::setScreen"));
this->screen = screen;
if(active){
renderer.display->clear();
this->screen->draw(&renderer);
}
}
Describe alternatives you've considered
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
feature-requestAdd new feature to the libraryAdd new feature to the library