I’ve had some time away from the Particle universe and things have changed a little since I was last here. I’m trying to use Adafruit’s INA260 library --> https://github.com/adafruit/Adafruit_INA260
However, as far as I can find there is no official porting as yet. I’ve tried to follow the firmware guidelines by building the required structure in the ‘lib’ folder, but without luck.
I’m getting this error when trying to flash the device
In file included from ./inc/application.h:95:0, from src/tDCS_User.cpp:1: ../wiring/inc/spark_wiring_arduino.h:76:0: note: this is the location of the previous definition #define SPI_HAS_TRANSACTION (1) ^ In file included from src/tDCS_User.ino:9:0: lib/Adafruit_INA260/src/Adafruit_INA260.h:21:32: fatal error: Adafruit_I2CDevice.h: No such file or directory compilation terminated. ../build/module.mk:274: recipe for target '../build/target/user/platform-12-msrc/tDCS_User.o' failed make: *** [../build/target/user/platform-12-msrc/tDCS_User.o] Error 1 make: Leaving directory '/firmware/user' ../../../build/recurse.mk:11: recipe for target 'user' failed make: *** [user] Error 2 make: Leaving directory '/firmware/modules/argon/user-part' ../build/recurse.mk:11: recipe for target 'modules/argon/user-part' failed make: *** [modules/argon/user-part] Error 2 Flash device failed: Compiler encountered an error
Any suggestions would be awesome!