yop.
voici le code
#include <Keypad.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = {A0, A1, A2, A3};
byte colPins[COLS] = {A4, A5, A6, A7};
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
void setup()
{
for(int i = 0; i <= 7; i++)
{
pinMode(i, OUTPUT);
digitalWrite(i, HIGH);
}
}
void revertRelay(int relayId)
{
digitalWrite(relayId, !digitalRead(r