First time posting here and new to Particle and honestly just new to all of this. I have tried to search around before posting and have found nothing that helps, so apologies if I missed a fix somewhere.
I have a P2 and I am trying to use the Adafruit_AHTXO library, I have even tried this with different libraries and still having the same issue, such as Adafruit_GPS & TinyGPS (This is from a different project). back to AHTX0, I know that it has dependenies - adafruit_BusIO and Adafruit_Sensor. Have download them from GitHub and placed them in the "lib" folder that I created.
Even with them under the lib folder it still cannot find the library.
Particle version - 3.34.4
node version - 23.11.0
npm version - 11.2.0
Thanks in advance!
Are you able to compile using Particle: Compile Application (local) or Particle: Cloud Compile?
Intellisense in VSCode generates the wavy red underlines and sometimes it does not detect the libraries, but the code will still build correctly.
Most Sparkfun and Adafruit libraries work without modification, however there are some common issues when porting libraries that are easily fixed.
It will not let me compile.
Following some the suggests from the link... I have moved the header files into src and still getting the error "cannot open source file "adafruit_AHTX0.h
Is that the actual error? If so, filenames are case-sensitive for cloud builds (and some local builds) and the a
in Adafruit needs to be capitalized.
Make sure you also apply the fix to change the name in library.properties to match the directory name. The Github has a human readable name, which works for Arduino, but it must be the directory name for Particle.