Hi all,
for info:
although the library version shown in the platformio library manager is the same for the INA260 library as in the adafruit github repository, the libraries differ. The platformio version shows compile errors, as severl casts from uint32_t to required enums are missing, e.g.:
“return (INA260_ConversionTime)voltage_conversion_time.read();”, where the (INA260_ConversionTime) is missing in the platformio version.
i do not know if thats up to adafruit to fix/submit or not, just wanted to point out the problem.
By the way, just add the missing casts to the enums as in the adafruit library and it compiles.
Rgds Vinc