evert-arias / EasyButton

Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
https://easybtn.earias.me
MIT License
447 stars 62 forks source link

Filter.h not found on v2.0.3. Failed to compile #83

Open m-gracia opened 1 year ago

m-gracia commented 1 year ago

Hello. First of all, thank you for your great job with this library.

I have been using this library on my project but now it throws a compilation error since v2.0.3:

In file included from .pio/libdeps/wemos_d1_mini32/EasyButton/src/EasyButtonTouch.cpp:9:
.pio/libdeps/wemos_d1_mini32/EasyButton/src/EasyButtonTouch.h:14:10: fatal error: Filter.h: No such file or directory
...
...
 #include <Filter.h>
          ^~~~~~~~~~
compilation terminated.
*** [.pio\build\wemos_d1_mini32\libe3f\EasyButton\EasyButtonTouch.cpp.o] Error 1

The same code compiles good on v2.0.1. I am almost sure it is not an error on my environment because I run a before the compilation. Also the MegunoLink dependency is resolved with MegunoLink@1.42.0

My env:

Best regards.

oriaj3 commented 1 year ago

Same error here.

robercy commented 1 year ago

Same error here.

evert-arias commented 1 year ago

I'll check it out

bohdanbirdie commented 11 months ago

Can confirm this on board = esp32doit-devkit-v1

Speedy2k commented 7 months ago

Any news on this ?? I got the same error on 2.0.3

libraries\EasyButton-2.0.3\src\EasyButtonTouch.h:14:10: fatal error: Filter.h: No such file or directory

mathieucarbou commented 7 months ago

same problem, platformio, board esp32dev

mtojay commented 7 months ago

hmmm no solution here? same problem. seems like its not down to user error if mutliple people have that problem?

also platformio in vscode and esp32dev board

mathieucarbou commented 7 months ago

hmmm no solution here? same problem. seems like its not down to user error if mutliple people have that problem?

also platformio in vscode and esp32dev board

Project seems dead. Look at this fork https://github.com/vdccc/EasyButton

This is the most recent one I've found, that cleans up the "mess" introduced in the latest commits in this project.

Otherwise, have a look at https://github.com/rwmingis/InterruptButton, which I find more reliable for the detection because it does not rely on the loop being called, both in mode sync and async.

mtojay commented 7 months ago

hmmm no solution here? same problem. seems like its not down to user error if mutliple people have that problem? also platformio in vscode and esp32dev board

Project seems dead. Look at this fork vdccc/EasyButton

This is the most recent one I've found, that cleans up the "mess" introduced in the latest commits in this project.

Otherwise, have a look at rwmingis/InterruptButton, which I find more reliable for the detection because it does not rely on the loop being called, both in mode sync and async.

amazing. thank you. i will look in to those two options! much appreciated