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




Why do you have multiple instances of the library installed? I suggest that you go to the liraries directory and remove the MMA8452Q related directories.
What is the staging stuff?
Below what the tree should look like
C:\Users\sterretje\Documents\Arduino\libraries>tree /f /a SparkFun_MMA8452Q_Accelerometer
Folder PATH listing for volume Windows
Volume serial number is 0000018B 0C5F:A8C6
C:\USERS\sterretje\DOCUMENTS\ARDUINO\LIBRARIES\SPARKFUN_MMA8452Q_ACCELEROMETER
| library.json
| library.properties
| LICENSE.md
| README.md
|
+---examples
| +---Example1_BasicReading
| | Example1_BasicReading.ino
| |
| +---Example2_RawDataReading
| | Example2_RawDataReading.ino
| |
| +---Example3_Orientation
| | Example3_Orientation.ino
| |
| +---Example4_ChangeScale
| | Example4_ChangeScale.ino
| |
| +---Example5_ChangeDataRate
| | Example5_ChangeDataRate.ino
| |
| +---Example6_ReadTaps
| | Example6_ReadTaps.ino
| |
| +---Example7_OriginalDeprecated
| | Example7_OriginalDeprecated.ino
| |
| +---Example8_AdvancedI2C
| | Example8_AdvancedI2C.ino
| |
| \---Example9_TwoSensors
| Example9_TwoSensors.ino
|
\---src
SparkFun_MMA8452Q.cpp
SparkFun_MMA8452Q.h
Thanks for that! I will check that out. I just tried to delete all the library folders (from the Sparkfun accelerometer) and reinstall it, but that did also not work. Let's see how the staging looks like.
It is exactly the same. I will try to test it on a different computer and see what happens there.