Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solve the Filter.h not found problem #88

Open
wanggaoteng opened this issue Dec 23, 2023 · 3 comments
Open

solve the Filter.h not found problem #88

wanggaoteng opened this issue Dec 23, 2023 · 3 comments
Assignees

Comments

@wanggaoteng
Copy link

wanggaoteng commented Dec 23, 2023

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
Copy link

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

@evert-arias evert-arias self-assigned this Jun 6, 2024
@jsolderitsch
Copy link

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.

@SwackSun
Copy link

SwackSun commented Oct 14, 2024

Can also work:

Edit file at EasyButton\src\EasyButtonTouch.h

#include <Arduino.h>
#include "../../MegunoLink/src/Filter.h"
#include "EasyButton.h"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants