I’ve just started work on a project which uses the RCSwitch library.
In the web IDE, the library is included thus:
#include "RCSwitch/RCSwitch.h"
But since Particle Dev wants a flattened structure, I have to include it without the directory:
#include "RCSwitch.h"
Otherwise, the compiler is unable to locate the file. I need to collaborate with someone else who uses the web IDE, so I need the same code to work on both Particle Dev and the web IDE. (And regardless, isn’t this a pretty basic requirement anyway?) Is there a way for me to get this to work?
Edit: Since I’m using GitHub for this project, it would probably be a good idea to use the former syntax ("RCSwitch/RCSwitch.h"
), since then I can have those files in a directory in the repo and .gitignore
them.