Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PRZEKAZNIK.h
- #ifndef _PRZEKAZNIK_h
- #define _PRZEKAZNIK_h
- #include "Arduino.h"
- class Relay
- {
- protected:
- uint8_t pin;
- bool state;
- bool normallyOpen;
- public:
- Relay();
- Relay(uint8_t p, bool isNormallyOpen);
- void begin();
- bool getState();
- void turnOn();
- void turnOff();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment