I've searched and searched and can't seem to find exactly what I'm looking for. I want to create a basic menu (if you can even call it that) for my LCD display with just a single button to change the menus, and up/down buttons for fan speeds (that'll be controlled only when that fan's menu is displayed). Here's how I want it to go:
Welcome screen
(on power-up)
|
|
Display 1
(coolant temp/flow rate)
|
|
Display 2
(Intake fan speed/voltage)
|
|
Display 3
(Exhaust fan 1 speed/voltage)
|
|
Display 5
(Exhaust fan 2 speed/voltage)
|
|
Back to display 1 and so on
There will also be a button-controlled servo to open and close a door but that will be independent of the menu system and not displayed.
Obviously I need 5 interrupts (flow meter, fan 1, fan 2, fan 3, servo button) and only have 2, which is why I'm going to use a ChipKIT MAX32 which has 5 interrupts and plenty of I/O for controlling fan speeds, etc. so that problem it solved.
I've got each system (except fan speed control) working independently with separate coding and each works fine (temp/flow works fine, fan speed display works fine). I just can't figure out how to merge them all together into a single working unit. I've seen several different menu libraries but they seem way more complex than what I need. I was thinking button state change or something but can't figure out how to get it all working properly.
What's the best way to go about that?