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
9c9b1394
Commit
9c9b1394
authored
Jun 23, 2017
by
João Lino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cancel action in menu
cancel action in menu
parent
abf959fa
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
154 additions
and
205 deletions
+154
-205
brew.h
brew.h
+7
-8
brew.ino
brew.ino
+141
-177
config.h
config.h
+6
-20
No files found.
brew.h
View file @
9c9b1394
...
...
@@ -94,17 +94,18 @@ void backToStatus();
// #################################################### Set Variables ##################################################################
int
getTimer
(
int
initialValue
,
int
defaultValu
e
);
boolean
checkForEncoderSwitchPush
(
bool
cancelabl
e
);
int
getTimer
(
int
initialValue
);
int
getTimer
(
int
initialValue
,
int
defaultValue
);
int
getTemperature
(
int
initialValue
);
int
xSetGenericValue
(
int
initialValue
,
int
minimumValue
,
int
maximumValue
,
const
char
*
valueName
,
const
char
*
unit
);
int
getTemperature
(
int
initialValue
);
int
getTemperature
(
int
initialValue
,
int
defaultValue
);
int
xSetTemperature
(
int
initialValue
);
int
getFinalYield
(
int
initialValue
);
int
getFinalYield
(
int
initialValue
,
int
defaultValue
);
int
xSet
FinalYield
(
int
initialValue
);
int
xSet
GenericValue
(
int
initialValue
,
int
defaultValue
,
int
minimumValue
,
int
maximumValue
,
const
char
*
valueName
,
const
char
*
unit
);
unsigned
long
getInactivityTime
();
...
...
@@ -112,6 +113,4 @@ unsigned long getInactivityTime();
void
xWaitForAction
(
String
title
,
String
message
);
boolean
gotButtonPress
(
int
iPin
);
#endif //__BREW
brew.ino
View file @
9c9b1394
This diff is collapsed.
Click to expand it.
config.h
View file @
9c9b1394
...
...
@@ -12,6 +12,7 @@
#define SETTING_CLEANING_TEMPERATURE 45 //45
#define SETTING_MACHINE_YIELD_CAPACITY_MIN 0
#define SETTING_MACHINE_YIELD_CAPACITY_MAX 50
#define SETTING_MACHINE_YIELD_DEFAULT 25
// ++++++++++++++++++++++++ Heating Element Relay ++++++++++++++++++++++++
#define HEATING_ELEMENT_DEFAULT_WINDOW_SIZE 1000
...
...
@@ -26,33 +27,13 @@
#define TEMPERATURE_MAX_VALUE 120
#define PT100_BASE_INPUT_PIN A4
#define PT100_BASE_OUTPUT_PIN 32
//#define PT100_BASE_INPUT_R_PIN A7
//#define PT100_BASE_OUTPUT_R_PIN 7
#define PT100_BASE_TIME_BETWEEN_READINGS 1
#define PT100_UP_INPUT_PIN A5
#define PT100_UP_OUTPUT_PIN 30
//#define PT100_UP_INPUT_R_PIN A8
//#define PT100_UP_OUTPUT_R_PIN 9
#define PT100_UP_TIME_BETWEEN_READINGS 1
#define PT100_DOWN_INPUT_PIN A6
#define PT100_DOWN_OUTPUT_PIN 31
//#define PT100_DOWN_INPUT_R_PIN A9
//#define PT100_DOWN_OUTPUT_R_PIN 8
#define PT100_DOWN_TIME_BETWEEN_READINGS 1
/*
#define PT100_BASE_DEFAULT_ADC_VMAX 1.1
#define PT100_BASE_DEFAULT_VS 5.0
#define PT100_BASE_DEFAULT_R1_RESISTENCE 605.2
#define PT100_BASE_DEFAULT_R2_RESISTENCE 605.2
#define PT100_UP_DEFAULT_ADC_VMAX 1.1
#define PT100_UP_DEFAULT_VS 5.0
#define PT100_UP_DEFAULT_R1_RESISTENCE 630.0 //620.0
#define PT100_UP_DEFAULT_R2_RESISTENCE 610.0
#define PT100_DOWN_DEFAULT_ADC_VMAX 1.1
#define PT100_DOWN_DEFAULT_VS 5.0
#define PT100_DOWN_DEFAULT_R1_RESISTENCE 616.0
#define PT100_DOWN_DEFAULT_R2_RESISTENCE 611.0
*/
// ++++++++++++++++++++++++ Mixer ++++++++++++++++++++++++
//#define MIXER_PIN 12
...
...
@@ -71,6 +52,7 @@
#define PUMP_SPEED_FAST 192
#define PUMP_SPEED_MAX_MOSFET 0
#define PUMP_SPEED_MAX 255
#define PUMP_SPEED_DEFAULT 0
// ++++++++++++++++++++++++ Rotary Encoder ++++++++++++++++++++++++
#define ROTARY_ENCODER_INTERRUPT_NUMBER 1 // On Mega2560 boards, interrupt 1 is on pin 3
...
...
@@ -83,11 +65,15 @@
// ++++++++++++++++++++++++ State Machine ++++++++++++++++++++++++
#define SETTING_WELCOME_TIMEOUT 100
#define SETTING_MAX_INACTIVITY_TIME 3000
#define SETTING_CANCEL_TIMER 2000
#define MENU_INIT eMenuType_Main
#define MENU_SIZE_MAIN_MENU 13
#define MENU_SIZE_PROFILES_MENU 9
#define MENU_SIZE_STAGE_MENU 13
#define MENU_SIZE_MALT_MENU 4
#define MENU_SIZE_SETTINGS_MENU 6
#define SETTING_COOKING_STAGE_INIT eCookingStage_Startpoint
#define SETTING_BEER_PROFILE_INIT eBeerProfile_Basic
// ++++++++++++++++++++++++ Menus ++++++++++++++++++++++++
#define MENU_MAIN_TITLE "Brewery Menu"
...
...
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