Created
June 5, 2021 17:02
-
-
Save loginov-rocks/bf00abfa41bdae9f0755f1e1da09a3b7 to your computer and use it in GitHub Desktop.
DIY Connected Espresso Machine: Boiler (Part 3) - Boiler.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef Boiler_h | |
#define Boiler_h | |
#include "Relay.h" | |
enum class BoilerTemp | |
{ | |
Cold, | |
Boiling, | |
Steam | |
}; | |
class Boiler : private Relay | |
{ | |
private: | |
int isBoilingPin; | |
int isSteamPin; | |
BoilerTemp targetTemp = BoilerTemp::Cold; | |
public: | |
Boiler(int, int, int); | |
// Getters. | |
boolean getState(); | |
BoilerTemp getTemp(); | |
BoilerTemp getTargetTemp(); | |
// Setters. | |
void setTargetTemp(BoilerTemp); | |
// Processors. | |
void work(); | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment