Sparkfun MMA8452Q Accelerometer Library Installed, but Arduino IDE does not find directory to file

Hi everyone,

I am having a pretty annoying issue. I have downloaded the Sparkfun MMA8452Q Accelerometer library in the library manager of arduino IDE. I can find the library in several library folders of the software. I can also find the examples of this specific library, so it is definitely installed. Yet, when I want to verify the example script, the error “No such file directory” shows up. I attached some screenshots. Does anyone have an idea on how to solve that problem

Best,

Patrick

2.png

1.png

Could you change your File → Preferences to show verbose output during compile and run it again. The problem won’t go away, but it should help in finding the cause. It would seem that the directory or directory tree where the “SparkFun_MMA8452Q.h” file has been installed is not on the compiler’s include path.

You might try manually removing the library and reinstalling it. The Arduino IDE sometimes breaks thinks while installing boards/libraries and removing and reinstalling seems to fix things most of the time.

I tried to manually remove all the libraries and installing it via the library manager again, still having the same issue.

I tried to manually remove all the libraries and installing it via the library manager again, still having the same issue.

I’ve tried it twice and it works every time for me. Maybe try a different computer? Could be something not right on the one you’re using now.

Interesting. Yeah, I will try that when I can!