Like to take an existing multi page menu'ing system on our arduino boards, and reduce the memory/footprint of static coded menu screens, by writing a more dynamic character loading linked list menu system.
I would like the end deliverable to be a more robust library, we use on our platform on many projects.
I would like a data structure for each menu page, to contain the following.
- array of menu items (LCD is a 4x20 screen, but would like to make work on 2x20 or more)
- each menu item should have a link to another menu , OR a function callback if selected.
- best resource management to assure best use of limited memory. We could have as many as 20+ menu's, and need to conserve best possible flash and ram storage for this many String/char array objects.
The end deliverable can be a simple program that loads 15 simulated menu items, and execute perhaps 20 functions (foo() bar() simulated serial printouts or such are ok) and consume less than 5k of flash, and 500 bytes of RAM.