avdwebLibraries/avdweb_Switch

Feature request - allow users to set long press duration

Closed this issue · 3 comments

Thank you very much for creating this library. I like it, however, I badly need to be able to change the long press duration. Thanks

You do not need to modify the library.
I suggest that you use the appropriate argument in the creator. These are the defaults:

Switch(byte _pin, byte PinMode=INPUT_PULLUP, bool polarity=LOW, int debouncePeriod=50, int longPressPeriod=300, int doubleClickPeriod=250, int deglitchPeriod=10);

Thank you both for the prompt reply and help. You may close this now.