Resetting Arduino after pressing the buttons 16 times

DanielBnl:
Good afternoon,

I'm trying to make my Arduino reset itself after pressing the pushbutton 16 times, however this is not working out at all. It is pressing the buttons but will not reset itself after 16 times. Can any of you please help me?

try using this MultiPress library....

you can easily define an action for 16 presses....

the function would look like this:

void B_ButtonActions(const int value)  // example of registering Multi-Presses
{
  Serial.print(F("Button B:\t"));
  switch(value)
  {
    case -1:
      Serial.println(F("Long Press"));
      break;
    case 1:
      Serial.println(F("One Press"));
      break;
    case 2:
      Serial.println(F("Two Presses"));
      break;
    case 3:
      Serial.println(F("Three Presses"));
      break;
    case 16:
      // RESET ARDUINO HERE<<<<<<<<<<
      break;
    default:
      Serial.println(F("Whole Lotta Presses"));
      break;
  }
}