Skip to content

More than 1 sec Long press Not working #12

@SrGalindo

Description

@SrGalindo

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();
  } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions