to increment a pressed button counter
#include <ButtonPressedCounter.h>
int buttonPin = 8;
ButtonPressedCounter bpc(buttonPin);
void setup() {
...
}
void loop() {
bpc.setCounterOnPress();
Serial.println(bpc.getCounter());
void ButtonPressedCounter::setCounterOnPress();
int ButtonPressedCounter::getCounter();
void ButtonPressedCounter::resetCounter();