Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef DEF_Lampe
- #define DEF_Lampe
- #if defined(ARDUINO) && ARDUINO >= 100
- #include "Arduino.h"
- #else
- #include "WProgram.h"
- #endif
- class Lampe
- {
- public:
- Lampe(int pinlampe, bool digital);
- void allumer();
- void eteindre();
- void inverser();
- void affecter_pin ();
- char afficher_etat();
- private:
- void lampewrite(bool etat);
- int m_pinlampe;
- bool m_etatlampe;
- bool m_digital;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement