+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Junior Member level 1
    Points: 1,760, Level: 9
    Achievements:
    7 years registered

    Join Date
    Dec 2010
    Posts
    15
    Helped
    0 / 0
    Points
    1,760
    Level
    9

    LCD Menu Architecture Suggestions?

    I am in need of an extensive menu system for an LCD, actuated with an encoder.

    The architecture I have created is an encoder-controlled system. Push-button enters the next menu item. Moving the encoder engages the next-previous operation. This structure is based on a doubly-linked list. Everything is programmed in C++.

    The main program architecture is made of many different classes (control system). All of these class objects use getters and setters to retrieve and set data.

    Provided this how do I access these data items with this LCD?

    Specifically, I can't use functions to simply get/set data from within the struct object because they come from different classes. My thought was to use pointers to data within elements, passed to an outside function. This sounds incredibly complicated however.

    Can anyone provide insight on how to access getters and setters from multiple classes in an LCD menu structure? I've been struggling to find any useful information. std::function has been a consideration, however, it can't provide me with returns is my understanding and I'm not sure how to accomplish this.

    Thanks kindly.

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 30,286, Level: 42
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    9,063
    Helped
    1143 / 1143
    Points
    30,286
    Level
    42
    Blog Entries
    9

    Re: LCD Menu Architecture Suggestions?

    Flowcharts is what you need on this stage, make a sketch of at least a single function of the whole, and you will see how objects will interact each other. For now, the only thing that come to mind is to use state machines in descendent layers to give a structured behaviour whilst you navigate wihin submenus.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



    •   AltAdvertisement

        
       

  3. #3
    Advanced Member level 4
    Points: 12,695, Level: 27
    Achievements:
    Created Blog entry 7 years registered
    thannara123's Avatar
    Join Date
    Jan 2010
    Location
    God's Own country India, India
    Posts
    1,448
    Helped
    118 / 118
    Points
    12,695
    Level
    27
    Blog Entries
    2

    Re: LCD Menu Architecture Suggestions?

    http://circuits-collection.blogspot....-16x2.html?m=1
    Look the above link it may be helpful .
    I Respect You



--[[ ]]--