Created
January 8, 2022 20:35
-
-
Save loginov-rocks/2659beb02cc3ef7a0d4887b0c5a99738 to your computer and use it in GitHub Desktop.
DIY Connected Espresso Machine: Main Class and Indicators (Part 5) - Make Coffee Command, Header
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 EspressoMachine_h | |
#define EspressoMachine_h | |
class EspressoMachine | |
{ | |
private: | |
// ... | |
// Helpers for the "Make Coffee" command. | |
long makeCoffeeMillisLeft = 0; | |
unsigned long makeCoffeePourWaterStartMillis = 0; | |
void makeCoffeeOperate(); | |
public: | |
// ... | |
long getMakeCoffeeMillisLeft(); | |
// Commands. | |
boolean command(EspressoMachineCommand); | |
boolean command(EspressoMachineCommand, int); | |
// ... | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment