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

Add user ability to change time LONGCLICK_MS, DOUBLECLICK_MS, DEBOUNCE_MS during compile time #10

Closed
cmeldas opened this issue Apr 16, 2020 · 1 comment

Comments

@cmeldas
Copy link

cmeldas commented Apr 16, 2020

It is useful to let user change LONGCLICK_MS, DOUBLECLICK_MS, DEBOUNCE_MS during compile time.

Suggested change in Button2.h

#ifndef DEBOUNCE_MS
    #define DEBOUNCE_MS      50
#endif
#ifndef LONGCLICK_MS 
    #define LONGCLICK_MS    200
#endif
#ifndef DOUBLECLICK_MS
    #define DOUBLECLICK_MS  300
#endif 

Usage:

#define LONGCLICK_MS    500
#include <Button2.h>
@LennartHennigs
Copy link
Owner

Hey Matouš,
thank you for your feedback! That’s a really neat idea! I will update the source as you suggested.

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