3djc/Mixer monitor (#3606)

* Add menu mechanics for 2 Mixers screens and 2 logical switches screens

* Add two mixer pages. To prevent errors, the Mixer bar are green (as opposed to red for outputs).

Icons for those pages are not yet the right ones

* Ready for mixers monitor PR
This commit is contained in:
3djc
2016-06-17 23:54:35 +02:00
committed by Bertrand Songis
parent 4445f7cdec
commit 5ed74f1329
7 changed files with 171 additions and 28 deletions
+18 -6
View File
@@ -98,6 +98,10 @@ enum MenuIcons {
ICON_MONITOR,
ICON_MONITOR_OUTPUTS1,
ICON_MONITOR_OUTPUTS2,
ICON_MONITOR_MIXERS1,
ICON_MONITOR_MIXERS2,
/* ICON_MONITOR_LOGIC_SWITCHES1,
ICON_MONITOR_LOGIC_SWITCHES2,*/
MENUS_ICONS_COUNT
};
@@ -160,7 +164,11 @@ const uint8_t STATS_ICONS[] = {
const uint8_t MONITOR_ICONS[] = {
ICON_MONITOR,
ICON_MONITOR_OUTPUTS1,
ICON_MONITOR_OUTPUTS2
ICON_MONITOR_OUTPUTS2,
ICON_MONITOR_MIXERS1,
ICON_MONITOR_MIXERS2,
/* ICON_MONITOR_LOGIC_SWITCHES1,
ICON_MONITOR_LOGIC_SWITCHES2*/
};
bool menuModelSetup(evt_t event);
@@ -224,15 +232,19 @@ static const MenuHandlerFunc menuTabStats[] PROGMEM = {
#endif
};
enum EnumTabChannels
enum EnumTabMonitors
{
e_Channels1,
e_Channels2,
e_Outputs1,
e_Outputs2,
e_Mixers1,
e_Mixers2,
/* e_LogicSwitches1,
e_LogicSwitches2,*/
e_TabChannelsPagesCount
};
extern const MenuHandlerFunc menuTabChannels[e_TabChannelsPagesCount];
extern uint8_t lastChannelsPage;
extern const MenuHandlerFunc menuTabMonitors[e_TabChannelsPagesCount];
extern uint8_t lastMonitorPage;
extern const MenuHandlerFunc menuTabScreensSetup[1+MAX_CUSTOM_SCREENS] PROGMEM;