1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| switch (keypad.getState()) {
case PRESSED:
Serial.print("Pressed: ");
Serial.println(eKey);
tone (buzzer,200,100);
pwMode = 1;
pwPos = pwPos + 1;
if (pwPos == 1) {
lcd.clear();
}
lcd.setCursor (0, 0);
lcd.print(F("Validez avec '*'"));
if (pwPos < 5) {
lcd.setCursor (5 + pwPos, 1);
lcd.print(F("*"));
}
break;
switch (eKey) {
case '*': checkPassword(); break;
//case '#':
// Serial.print(" ");
// password1.reset();
// break;
default:
password1.append(eKey);
password2.append(eKey);
} |