Skip to content

Moving Menu Names and Items into PROGMEM #32

Open
@jecottrell

Description

@jecottrell

I'm running up against a dynamic memory limit with an involved menu tree. I've tried all of the PROGMEM ideas presented by Dean Camera (fourwalledcubicle) and I haven't been successful. Is there any way to achieve that?

Here is the beginning of my menu system:

MenuSystem ms;
Menu mm("HOME");
  MenuItem mm_mi1("Status");
  Menu mu2("MODES");
    Menu mu21("AUTO");
      MenuItem mu21_mi1("Select");
    Menu mu22("MANUAL");
      MenuItem mu22_mi1("Select");
      MenuItem mu22_mi2("Move Doors");
      MenuItem mu22_mi3("Move Nest Gates");
      MenuItem mu22_mi4("Switch Lights");
  Menu mu3("SETTINGS");
    MenuItem mu3_mi1("Set Time");
    MenuItem mu3_mi2("Set Date");
    Menu mu31("DOOR SCHEDULE");
      MenuItem mu31_mi1("Door Open Time");
      MenuItem mu31_mi2("Door Close Time");
    Menu mu32("NEST SCHEDULE");
      MenuItem mu32_mi1("Nest Open Time");
      MenuItem mu32_mi2("Nest Close Time");
    Menu mu33("LIGHT SCHEDULE");
      Menu mu331("LIGHT AM SCHED");
        MenuItem mu331_mi1("Lights AM On");
        MenuItem mu331_mi2("Lights AM Off");
      Menu mu332("LIGHT PM SCHED");
        MenuItem mu332_mi1("Lights PM On");
        MenuItem mu332_mi2("Lights PM Off");

Thanks for developing and sharing your code. It's been an INCREDIBLE help with my latest project.

John

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions