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

[UI] Configurable Allocator for modm::ViewStack #1184

Merged

Commits on Jul 21, 2024

  1. Configuration menu
    Copy the full SHA
    fa7d248 View commit details
    Browse the repository at this point in the history
  2. [ui] Refactor view stack to take a GraphicDisplay

    This way it can be specialized with a monochrome or color display later.
    MatthewMArnold committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    ee88ac7 View commit details
    Browse the repository at this point in the history
  3. [ui] Add support for a custom allocator to modm::ViewStack

     Allowing a custom allocator allows users to control how
     modm::AbstractView elements stored by the view stack are allocated.
     This, for example, allows the user to statically allocate all views and
     removes the memory and processing overhead of dynamically allocating
     views. For an example, see aruw-mcb's MainMenu class:
     https://github.com/uw-advanced-robotics/aruw-mcb/blob/develop/aruw-mcb-project/src/aruwsrc/display/main_menu.cpp
     By default, a dynamic allocator used, so default behavior remains unchanged.
    MatthewMArnold committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    cd4d223 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    beb03f3 View commit details
    Browse the repository at this point in the history