Hello, First of all thanks for this library, it's very interesting.
I'm trying the MultiClicks example in a Esp32.
I found that when I do more than once short click it always calls the same function. In the following code "2 something" is displayed in loop in the serial monitor.
if(LEDfunction == 2){
doSomethingWhenTwoShortClicks();
}
void doSomethingWhenTwoShortClicks(){
Serial.println("2 something");
}
Also found that it never reaches the long press for more than 1 sec. The following code always would call doSomethingLongPress();
if(LEDfunction == -1){
doSomethingLongPress();
}
if(LEDfunction == -2){
doSomethingLongPressTWO();
}
Hello, First of all thanks for this library, it's very interesting.
I'm trying the MultiClicks example in a Esp32.
I found that when I do more than once short click it always calls the same function. In the following code "2 something" is displayed in loop in the serial monitor.
Also found that it never reaches the long press for more than 1 sec. The following code always would call
doSomethingLongPress();