Hey,
I'm trying to build a primitive menu to be shown on a 4x20 HD44780 LCD display. Buttons will control the navigatinon within the menu and the respons will be handled by a state machine.
The thing is; I'm completely lost with regard to how I should organize the menu and manage the navigational part of it. I've thought about having a 3 dimensional array of strings to define all lines of each menu and sub menu. This array will be acompanied by an equally sized respons array that defines the respons of each menu item.
I.e. if enter is pressed in position [1,0,1]: go to the same position in the respons array and find that the respons should be to go to position [1,1,0] in the menu (a sub menu).
I've been searching a lot to see if I can find some sort of pre made system for this kind of thing, but I haven't been able to find any so I'm hoping some of you may have encountered this problem already.
I plan to use a myRIO to power the whole system, which is a single vessel brewing system.
Thanks a lot!