18 lines
No EOL
363 B
C++
18 lines
No EOL
363 B
C++
#ifndef bouton_H
|
|
#define bouton_H
|
|
#include "capteur.h"
|
|
#include "rgb_lcd.h"
|
|
|
|
//Déclaration de la classe bouton
|
|
class bouton : public capteur {
|
|
private:
|
|
bool etat;
|
|
public:
|
|
bouton();
|
|
bouton(int pin);
|
|
bool lire_etat(); //Accesseur de etat
|
|
};
|
|
|
|
//Renvoie 1 si bouton relief et renvoie 0 si bouton plat
|
|
bool choix_bouton(bouton &Brelief, bouton &Bplat);
|
|
#endif |