#include <ezButton.h>


ezButton button(2);
#define led 8
boolean led_status = false;
void setup() {
 Serial.begin(115200);
 pinMode(led, OUTPUT);
 button.setDebounceTime(20);
 
}
void loop() {
button.loop();
 if (button.isPressed()){
  Serial.println("The button is pressed");
  digitalWrite(led,led_status);
   led_status = !led_status;
  }
}