Let me start off by saying I’m very very new to this stuff. So far I have mostly been following the tutorials and documentations, however I’ve now run into an issue I can’t quite figure the solution for.
I’m working in the Web IDE, and whenever I use any applications that include libraries (e.g. even official ones like the Google Locator and Particle applications) when I try to compile it will always tell me it is unable to find those libraries: ‘‘No such file or directory’’. For example, I use one of the examples from the RelayShield application; without changing any code, it tells me it can’t find RelayShield.h although it’s clearly there.
Actually, let me get back to that. For libraries where I simply use the associated example, things are fine now. However, I just tried to include a library to one of my existing projects, and it still has the same error.
in my project, it calls for: #include “ADXL362DMA.h” , which is part of the ADXL362DMA library.
I don’t see such a button on my screen. The library is only about 12 months old, and should work for my Electron according to the documentation.
What I want is firmware that will publish an event whenever the sensor is moved on specific axis, and this library seems to do just that. In case anyone wonders, here’s the documentation with files: https://github.com/rickkas7/AccelWake
I used accelwake_electron.cpp and the ADXL362DMA as the library, which isn’t detected.
// This #include statement was automatically added by the Particle IDE.
#include <ADXL362DMA.h> // it's already here, so the inlcude below is superfluous and even wrong
#include "Particle.h" // this is superfluous, but if put in, it should be the first include
#include "ADXL362DMA/ADXL362DMA.h" // <-- this is causing problems