//program to implememnt counting by pressing button
#include<ezButton.h>
ezButton button(10);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
button.setDebounceTime(50);
button.setCountMode(COUNT_FALLING);
}
void loop() {
// put your main code here, to run repeatedly:
button.loop();
unsigned long count=button.getCount();
Serial.println(count);
}