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
452 stars 63 forks source link

solve the Filter.h not found problem #88

Open wanggaoteng opened 9 months ago

wanggaoteng commented 9 months ago

I open this new issue just for convenient, help the people who can find the solution immediately. I use Platformio, and install the EasyButton2.0.3 library through the Platformio library installation: image

I find that there is another library which named MegunoLink will also installed too. Because MegunoLink library is the depends of EasyButton2.0.3, as we can see from the library.properties file of EasyButton2.0.3: image

We can find the Filter.h file in the library folder of MegunoLink/src, so just copy it to the library foler of EasyButton\src, the problem solved. Or just unzip the Filter.zip below, get Filter.h file, and copy Filter.h into your EasyButton\src folder. Filter.zip

madkiwinz commented 8 months ago

@wanggaoteng thank you for the suggested fix of copying the Filter.h file to the EasyButton\src folder

jsolderitsch commented 2 months ago

I am not working with Platformio but with the recent changes to the esp32 family within Arduino IDE, the code from MegunoLink now throws errors on compiles when I include EasyButton in my sketch. I removed the MegunoLink library and then the only error I get is that filter.h is missing. I followed @wanggaoteng's advice and grabbed the filter.h file from this issue and copied it to the src folder for EasyButton. Then the compile error went away.