What is the proper way to include libraries when using the web IDE?
The include
syntax in some libraries is with angle brackets, such as
#include <TinyGPS++/TinyGPS++.h>
vs
#include "TinyGPS++/TinyGPS++.h"
For instance, the BasicExample.ino
example code from the TinyGPS++ library uses angles as above. If I select this library in the web Build IDE and click the “USE THIS EXAMPLE” button, the library is included in a new project along with the source code of the BasicExample.ino
file (which is the first tab in the library view and selected by default).
But the code won’t compile because the #include
syntax is wrong. It works when switched to quotes.
Why does the source code of the example file use the incorrect syntax? Apologies if this has been discussed already, I couldn’t find canonical thread.