I need some advise on menu/lcd/keypad menu architecture.
I have a class that handles the keypad with a callback onKeyUp function.
I have an lcd class that handles the lcd. The first method is awake().
I have other class that is the menu, with items subitems and action callbacks.
The question is: who should this work together?
Should I have other class like an orchestrator who knows which menu is current what key was pressed and pass the lcd the menu to print? Should it handle the string and pass the LCD the strings to print? Should the LCD knows about the menu and it state?
When the LCD is awaked I should present the date aand time.
Any help would be great.
I don’t need code but the architectural idea.