toto/BE c/projet/bouton.h
2026-01-15 12:23:17 +01:00

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