Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large Menus #410

Open
TGYK opened this issue Mar 15, 2023 · 1 comment
Open

Large Menus #410

TGYK opened this issue Mar 15, 2023 · 1 comment

Comments

@TGYK
Copy link

TGYK commented Mar 15, 2023

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
@neu-rah
Copy link
Owner

neu-rah commented Mar 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants