Thanks John, that was it to make it happen! It works but I see another little thing now...can I skip the "Press # to arm" message and button? So that cutting the wire immediately starts the countdown?
Started to remove the
while (keycount == 12)
{
char armkey = keypad.getKey();
if (armkey == '#')
{
tone(9, 5000, 100);
delay(50);
tone(9, 0, 100);
delay(50);
tone(9, 5000, 100);
delay(50);
tone(9, 0, 100);
delay(50);
tone(9, 5000, 100);
delay(50);
tone(9, 0, 100);
lcd.clear();
lcd.print ("Bomb Armed!"); // Je kan hier de tekst aanpassen tussen de "....."
lcd.setCursor(0, 1);
lcd.print("Countdown start"); // Je kan hier de tekst aanpassen tussen de "....."
delay(100);
lcd.clear();
keycount = 0;
}
but that doesn't do the trick that I need