Skip to content

marcoris/buttonpressedcounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino library ButtonPressedCounter

to increment a pressed button counter

Getting started

#include <ButtonPressedCounter.h>

int buttonPin = 8;
ButtonPressedCounter bpc(buttonPin);

void setup() {
  ...
}

void loop() {
  bpc.setCounterOnPress();

  Serial.println(bpc.getCounter());

Methods

void ButtonPressedCounter::setCounterOnPress();
int ButtonPressedCounter::getCounter();
void ButtonPressedCounter::resetCounter();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages