ArduinoMenu icon indicating copy to clipboard operation
ArduinoMenu copied to clipboard

Large Menus

Open TGYK opened this issue 1 year ago • 1 comments

I am working on a project which is basically just a configuration interface for an SPI-driven peripheral. I am running into space issues when attempting to implement large choose menus within my code - I understand the limitation of 16 items with the use of macros. So, I followed the dynamic example as a guide to manually implement larger menus, implementing it using constMEM and MEMMODE where applicable but am running into issues with both program space and RAM usage.

Is there any way to make larger menus work using this library?

A basic skeleton of the menu is shown below:

  • Root
    • Choose (8 options)
    • Choose (2 options)
    • Choose (2 options)
    • Choose (5 options) (These 5 submenus use the same prompts)
        1. Choose (64 options)
        1. Choose (64 options)
        1. Choose (64 options)
        1. Choose (64 options)
        1. Choose (64 options)
    • Choose (5 options) (These 5 submenus use the same prompts)
        1. Choose (64 options)
        1. Choose (64 options)
        1. Choose (64 options)
        1. Choose (64 options)
        1. Choose (64 options)
    • Choose (5 options) (These 5 submenus use the same prompts)
        1. Choose (32 options)
        1. Choose (32 options)
        1. Choose (32 options)
        1. Choose (32 options)
        1. Choose (32 options)
    • Choose (5 options) (These 5 submenus use the same prompts)
        1. Choose (120 options)
        1. Choose (120 options)
        1. Choose (120 options)
        1. Choose (120 options)
        1. Choose (120 options)
    • Choose (5 options) (These 5 submenus use the same prompts)
        1. Choose (127 options)
        1. Choose (127 options)
        1. Choose (127 options)
        1. Choose (127 options)
        1. Choose (127 options)
    • Exit

TGYK avatar Mar 15 '23 03:03 TGYK

Focusing on that on version 5, for now the SD example uses long lists of files, provided that they are treated all the same with the same handler, differentiate later by index.

neu-rah avatar Mar 26 '23 14:03 neu-rah