#define PORT_LED 7
#define PORT_BP 6
#include "Led.h"
#include "Bp.h"
Led diode;
Bp bouton;
//Programme principal
void setup() {
diode.setPinLed(PORT_LED);
bouton.setPin(PORT_BP);
}
void loop() {
//Lire Bp et allumer Led si Bp enfoncé, éteindre sinon
if(bouton.getBpState()){diode.setOn();}
else{diode.setOff();}
}