Skip to content

Instantly share code, notes, and snippets.

@loginov-rocks
Created January 8, 2022 20:35
Show Gist options
  • Save loginov-rocks/2659beb02cc3ef7a0d4887b0c5a99738 to your computer and use it in GitHub Desktop.
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
#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