PowerTGS440

przekaznik.h

Feb 15th, 2021
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // PRZEKAZNIK.h
  2.  
  3. #ifndef _PRZEKAZNIK_h
  4. #define _PRZEKAZNIK_h
  5.  
  6. #include "Arduino.h"
  7.  
  8. class Relay
  9. {
  10. protected:
  11. uint8_t pin;
  12. bool state;
  13. bool normallyOpen;
  14.  
  15. public:
  16. Relay();
  17. Relay(uint8_t p, bool isNormallyOpen);
  18. void begin();
  19. bool getState();
  20. void turnOn();
  21. void turnOff();
  22. };
  23.  
  24. #endif
  25.  
Advertisement
Add Comment
Please, Sign In to add comment