Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoubleClick example does not initialize the double click threshold time #4

Open
mrtktabornsr opened this issue May 14, 2022 · 1 comment

Comments

@mrtktabornsr
Copy link

The DoubleClick example, the setup() function is missing a call to the Button::setdoubleclickThreshold(time) member. Therefore double clicks are never detected.

void setup(){
Serial.begin(9600);
Serial.println("Started");
pinMode(ledPin,OUTPUT); //LED on pin 12
Button1.setdoubleclickThreshold(500) ; //---- missing this
}

@t3db0t
Copy link
Owner

t3db0t commented May 15, 2022

Thank you for the bug report! If you're willing to make a pull request, I'd be happy to merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants