Hi, all. I'm very confused about how to add an Arduino compatible library (for a Sparkfun Qwiic OLED display and a Sparkfun Qwiic Environmental sensor) to a project. They don't exist in Particle's list of libraries. An example is here:
Qwiic Micro OLED Hookup Guide - SparkFun Learn
Any help appreciated. Note that this is for a P2.
Just download the source from their Github. Extract the zip if you're using that. Save the entire
SparkFun_Micro_OLED_Arduino_Library directory in the lib directory at the top level of your project directory.
But how does the compiler (and Workbench) find the header files?
For every directory in the
lib directory at the top of the project directory, within that directory, every
src directory is added to the include path. So just include the .h file, with no path.
Looks like it was a VSCode glitch that resolved itself after a manually initiated build. Thanks!