Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
brew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
João Lino
brew
Commits
abf959fa
Commit
abf959fa
authored
Jun 22, 2017
by
João Lino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menus sorted
menus sorted
parent
d5ea03fd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
890 additions
and
1094 deletions
+890
-1094
CustomDataStructures.h
CustomDataStructures.h
+1
-0
brew.h
brew.h
+10
-10
brew.ino
brew.ino
+870
-1084
config.h
config.h
+9
-0
No files found.
CustomDataStructures.h
View file @
abf959fa
...
...
@@ -118,6 +118,7 @@ typedef struct menuData_ {
int
_position
;
int
_selection
;
bool
_repaint
;
void
(
*
_selectionFunction
)(
void
);
}
MenuData
;
#endif
brew.h
View file @
abf959fa
...
...
@@ -17,6 +17,14 @@
#include "CustomDataStructures.h"
#include "debug.h"
// ++++++++++++++++++++++++ FUNCTIONS (used in configuration) +++++++++++++++++++++++++++++++++
void
runMainMenuSelection
();
void
runStartFromStageSelection
();
void
runBeerProfileSelection
();
void
runStageSelection
();
void
runMaltSelection
();
void
runSettingsSelection
();
#include "config.h"
#include "Melody.h"
...
...
@@ -38,13 +46,9 @@ void xWelcomeUser();
void
runMenu
();
void
run
SettingsSelection
(
);
void
run
MenuProcessor
(
MenuData
*
data
);
void
runMaltSelection
();
void
runStageSelection
();
void
runBeerProfileSelection
();
void
runStageSelection_Generic
(
unsigned
long
*
selectedStageTime
,
int
*
selectedStageTemperature
);
void
xStartStage
(
unsigned
long
*
stageTime
,
int
*
stageTemperature
,
eCookingStages
nextStage
,
bool
bPurgePump
,
bool
bSetFinalYield
,
bool
bSetTime
,
bool
bSetTemperature
);
...
...
@@ -52,10 +56,6 @@ void xStartStageHeadless( eCookingStages nextStage, bool bPurgePump );
void
xStartStageInteractive
(
unsigned
long
*
stageTime
,
int
*
stageTemperature
,
eCookingStages
nextStage
);
void
runStartFromStageSelection
();
void
runMainMenuSelection
();
void
xCountTheTime
(
int
temperatureRange
,
boolean
bAverageUpDown
);
bool
isTimeLeft
();
...
...
brew.ino
View file @
abf959fa
This diff is collapsed.
Click to expand it.
config.h
View file @
abf959fa
...
...
@@ -95,36 +95,45 @@
#define MENU_MAIN_INIT_POSITION eMainMenu_GO
#define MENU_MAIN_INIT_SELECTION eMainMenu_NULL
#define MENU_MAIN_INIT_REPAINT false
#define MENU_MAIN_FUNCTION &runMainMenuSelection
#define MENU_PROFILE_TITLE "Profile Menu"
#define MENU_PROFILE_DIALOG {"", "-> Basic ", "-> Trigo ", "-> IPA ", "-> Belga ", "-> Red ", "-> APA ", "-> Custom ", "-> Back " }
#define MENU_PROFILE_INIT_POSITION eBeerProfileMenu_Basic
#define MENU_PROFILE_INIT_SELECTION eBeerProfileMenu_NULL
#define MENU_PROFILE_INIT_REPAINT false
#define MENU_PROFILE_FUNCTION &runBeerProfileSelection
#define MENU_STAGE_TITLE "Stage Menu"
#define MENU_STAGE_DIALOG {"", "-> Startpoint ", "-> BetaGlucanase", "-> Debranching ", "-> Proteolytic ", "-> Beta Amylase ", "-> Alpha Amylase", "-> Mashout ", "-> Recirculation", "-> Sparge ", "-> Boil ", "-> Cooling ", "-> Back " }
#define MENU_STAGE_INIT_POSITION eStageMenu_Startpoint
#define MENU_STAGE_INIT_SELECTION eStageMenu_NULL
#define MENU_STAGE_INIT_REPAINT false
#define MENU_STAGE_FUNCTION &runStageSelection
#define MENU_MALT_TITLE "Malt Menu"
#define MENU_MALT_DIALOG {"", "-> CM Ch. Pilsen", "-> CM Wheat Blan", "-> Back " }
#define MENU_MALT_INIT_POSITION eMaltMenu_CastleMalting_Chteau_Pilsen_2RS
#define MENU_MALT_INIT_SELECTION eMaltMenu_NULL
#define MENU_MALT_INIT_REPAINT false
#define MENU_MALT_FUNCTION &runMaltSelection
#define MENU_SETTINGS_TITLE "Settings Menu"
#define MENU_SETTINGS_DIALOG {"", "-> PT100 Element", "-> PT100 Up ", "-> PT100 Down ", "-> Back " }
#define MENU_SETTINGS_INIT_POSITION eSettingsMenu_PT100_Element
#define MENU_SETTINGS_INIT_SELECTION eSettingsMenu_NULL
#define MENU_SETTINGS_INIT_REPAINT false
#define MENU_SETTINGS_FUNCTION &runSettingsSelection
#define MENU_GLOBAL_STR_TEMPERATURE "temperature"
#define MENU_GLOBAL_STR_CELSIUS "*C"
#define MENU_START_TITLE MENU_STAGE_TITLE
#define MENU_START_DIALOG MENU_STAGE_DIALOG
#define MENU_START_INIT_POSITION MENU_STAGE_INIT_POSITION
#define MENU_START_INIT_SELECTION MENU_STAGE_INIT_SELECTION
#define MENU_START_INIT_REPAINT MENU_STAGE_INIT_REPAINT
#define MENU_START_FUNCTION &runStartFromStageSelection
// ++++++++++++++++++++++++ Serial Monotor ++++++++++++++++++++++++
#define SETTING_SERIAL_MONITOR_BAUD_RATE 9600
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment