Created
June 2, 2021 18:37
-
-
Save loginov-rocks/4bfa4750ed7d8e2273f5402d58d906c6 to your computer and use it in GitHub Desktop.
DIY Connected Espresso Machine: Relays (Part 2) - Relay.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 Relay_h | |
#define Relay_h | |
#include "Arduino.h" | |
class Relay | |
{ | |
private: | |
int pin; | |
public: | |
Relay(int); | |
// Getters. | |
boolean getState(); | |
// Commands. | |
void on(); | |
void off(); | |
void toggle(); | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment