Merge branch 'state-handler' of github.com:vas-dav/ESP-Ventilation into state-handler
This commit is contained in:
commit
f8d1462113
@ -15,12 +15,17 @@
|
|||||||
#ifndef STATE_HANDLER_H_
|
#ifndef STATE_HANDLER_H_
|
||||||
#define STATE_HANDLER_H_
|
#define STATE_HANDLER_H_
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
#include "DigitalIoPin.h"
|
||||||
|
#include "LiquidCrystal.h"
|
||||||
|
>>>>>>> a6b953c51fc0a0204b4a5f881a975ec5e9842c6f
|
||||||
#include "Counter.h"
|
#include "Counter.h"
|
||||||
#include "DigitalIoPin.h"
|
#include "DigitalIoPin.h"
|
||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
#include "LiquidCrystal.h"
|
#include "LiquidCrystal.h"
|
||||||
|
|
||||||
/** Buttons enumeration
|
/** Buttons enumeration
|
||||||
*
|
*
|
||||||
* Current switch state is being passed
|
* Current switch state is being passed
|
||||||
* from main to StateHandler through
|
* from main to StateHandler through
|
||||||
@ -28,8 +33,7 @@
|
|||||||
* of the particular button.
|
* of the particular button.
|
||||||
* */
|
* */
|
||||||
|
|
||||||
enum _buttons
|
enum _buttons {
|
||||||
{
|
|
||||||
/** Raises the bar up */
|
/** Raises the bar up */
|
||||||
BUTTON_CONTROL_UP,
|
BUTTON_CONTROL_UP,
|
||||||
/** Raises the bar down */
|
/** Raises the bar down */
|
||||||
@ -40,8 +44,7 @@ enum _buttons
|
|||||||
/** Optional button to toggle the
|
/** Optional button to toggle the
|
||||||
* activation of the current setting.
|
* activation of the current setting.
|
||||||
* Not compulsory to be used. */
|
* Not compulsory to be used. */
|
||||||
BUTTON_CONTROL_TOG_ACTIVE
|
BUTTON_CONTROL_TOG_ACTIVE };
|
||||||
};
|
|
||||||
|
|
||||||
enum _bars
|
enum _bars
|
||||||
{
|
{
|
||||||
|
|||||||
@ -18,6 +18,24 @@ StateHandler::~StateHandler ()
|
|||||||
// TODO Auto-generated destructor stub
|
// TODO Auto-generated destructor stub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
StateHandler::displaySet (unsigned int value1, unsigned int value2)
|
||||||
|
{
|
||||||
|
// TODO
|
||||||
|
/**
|
||||||
|
* MANUAL MODE:
|
||||||
|
* ----------------
|
||||||
|
* SPEED: 20%
|
||||||
|
* PRESSURE: XXPa
|
||||||
|
* ----------------
|
||||||
|
* AUTO MODE:
|
||||||
|
* ----------------
|
||||||
|
* PRESSURE SET: 35Pa
|
||||||
|
* PRESSURE CUR: XXPa
|
||||||
|
* ----------------
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
unsigned int
|
unsigned int
|
||||||
StateHandler::getSetPressure ()
|
StateHandler::getSetPressure ()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user