Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. //file Motore.h
  2. /*Classe Motore
  3. ver 0.1
  4. 26/05/2017
  5. sergiocntr@gmail.com
  6. ****************
  7. Nel costruttore specificare i pin del sensore avanti e indietro
  8. ed i pin del movimento orario/antiorario   e acceso/spento
  9. */
  10. #ifndef Motore_h
  11. #define Motore_h
  12.  
  13. #include "Arduino.h"
  14.  
  15. class Motore{
  16.   public:
  17.     Motore(int avPin,int indPin, int orAntiorPin, int onOffPin);
  18.     void orario();
  19.     void antiOrario();
  20.     void spento();
  21.     void acceso();
  22.     int indPin();
  23.     int avPin();
  24.   private:
  25.     int _avPin,_indPin,_orAntiorPin,_onOffPin;
  26. };
  27. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement