Advertisement
Enikka

Eclairage_bureau_salon_Lampe.h

Aug 17th, 2012
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #ifndef DEF_Lampe
  2. #define DEF_Lampe
  3.  
  4. #if defined(ARDUINO) && ARDUINO >= 100  
  5.     #include "Arduino.h"  
  6. #else  
  7.     #include "WProgram.h"
  8.  
  9. #endif
  10.  
  11. class Lampe
  12. {
  13.   public:
  14.  
  15.   Lampe(int pinlampe, bool digital);
  16.   void allumer();
  17.   void eteindre();
  18.   void inverser();
  19.   void affecter_pin ();
  20.   char afficher_etat();
  21.  
  22.   private:
  23.  
  24.   void lampewrite(bool etat);
  25.  
  26.   int m_pinlampe;
  27.   bool m_etatlampe;
  28.   bool m_digital;
  29. };
  30.  
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement