Does anyone know of a library for an LCD menu/sub-menu system that uses PROGMEM?
I have been using this library previously GitHub - jonblack/arduino-menusystem: Arduino library for implementing a menu system which has been working great but the menu I need to add for my project has 700+ submenus/items, plus a handful of menus to hold them and it’s smashing the SRAM big time.
I guess the basic functionality would need to be simply:
-Left (scroll menus or items)
-Right (scroll menus or items)
-Select (enter down into a sub-menu, or if it’s an item then activate a function)
-Back (go back up to the previous menu)
I’ve had some success with storing/retrieving strings (const char 's) in PROGMEM previously but with my very limited knowledge I can’t get the menus/items from the library I mentioned above into Progmem too. I suspect it’s not even possible.
If anyone knows of a better library to use, or is able to help me get my example code into PROGMEM using the library I’ve been using that would be even better.
I’ve attached the code in a zip. It’s written with Visual Studio Code and the Platformio extension and includes both the menu library and also the PROGMEM_readAnything library I’ve also been trying to mess with to achieve this.
I did message a Mr Nick Gammon on PM but have since decided that maybe the forum is a better place so others can be helped too.
Thanks for any help/suggestions!!
MENU_PROGMEM_TEST_updated.zip (59.5 KB)