I need to use an LPS35HW and a TCA9548A I2C multiplexer, but can’t find the library’s.
SparkFun_I2C_Mux_Arduino_Library should work for the TCA9548A.
It doesn’t appear that anyone has ported the Adafruit LP35HW library, but it’s easy if you use Particle Workbench:
- Download the source from the Adafruit Github.
- In your project directory in Workbench, create a
lib
directory if it doesn’t already exist - Copy the library source so the entire
Adafruit_LPS35HW
directory is inlib
- Create a
src
directory insidelib/Adafruit_LPS35HW
- Move Adafruit_LPS35HW.cpp and Adafruit_LPS35HW.h into
lib/Adafruit_LPS35HW/src
-
#include "Adafruit_LPS35HW.h"
in your main source file
3 Likes
it works thanks!
2 Likes
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.