Skip to content

PowerMeterTdisplay not working #1

@papbo

Description

@papbo

HI,
I have installed the software on the T display and installed the different library from SOLDERED site.
I have this error
MultiProject:6:10: fatal error: INA219.h: No such file or directory
#include "INA219.h"

I replace the INA219.h with INA219-SOLDERED.h
and I have other errors
MultiProject:12:16: error: no matching function for call to 'INA219::INA219(int)'
INA219 INA(0x40);
^
In file included from /Users/etienne/SynologyDrive/Arduino/libraries/Soldered-INA219-Current-Sensor/src/INA219-SOLDERED.h:17,
from /Users/etienne/SynologyDrive/Arduino/Programmes/Test-DISPLAY-S3/PowerMeterTDisplay-main/MultiProject/MultiProject.ino:6:
/Users/etienne/SynologyDrive/Arduino/libraries/Soldered-INA219-Current-Sensor/src/libs/Arduino-INA219/INA219.h:91:7: note: candidate: 'INA219::INA219()'
class INA219
^~~~~~
/Users/etienne/SynologyDrive/Arduino/libraries/Soldered-INA219-Current-Sensor/src/libs/Arduino-INA219/INA219.h:91:7: note: candidate expects 0 arguments, 1 provided
/Users/etienne/SynologyDrive/Arduino/libraries/Soldered-INA219-Current-Sensor/src/libs/Arduino-INA219/INA219.h:91:7: note: candidate: 'constexpr INA219::INA219(const INA219&)'
/Users/etienne/SynologyDrive/Arduino/libraries/Soldered-INA219-Current-Sensor/src/libs/Arduino-INA219/INA219.h:91:7: note: no known conversion for argument 1 from 'int' to 'const INA219&'
/Users/etienne/SynologyDrive/Arduino/libraries/Soldered-INA219-Current-Sensor/src/libs/Arduino-INA219/INA219.h:91:7: note: candidate: 'constexpr INA219::INA219(INA219&&)'
/Users/etienne/SynologyDrive/Arduino/libraries/Soldered-INA219-Current-Sensor/src/libs/Arduino-INA219/INA219.h:91:7: note: no known conversion for argument 1 from 'int' to 'INA219&&'
/Users/etienne/SynologyDrive/Arduino/Programmes/Test-DISPLAY-S3/PowerMeterTDisplay-main/MultiProject/MultiProject.ino: In function 'void setup()':
MultiProject:58:7: error: 'class INA219' has no member named 'setMaxCurrentShunt'; did you mean 'getMaxCurrent'?
INA.setMaxCurrentShunt(5, 0.1);
^~~~~~~~~~~~~~~~~~
getMaxCurrent
/Users/etienne/SynologyDrive/Arduino/Programmes/Test-DISPLAY-S3/PowerMeterTDisplay-main/MultiProject/MultiProject.ino: In function 'void loop()':
MultiProject:148:11: error: 'class INA219' has no member named 'getCurrent_mA'; did you mean 'getMaxCurrent'?
cur=INA.getCurrent_mA();
^~~~~~~~~~~~~
getMaxCurrent
MultiProject:149:11: error: 'class INA219' has no member named 'getBusVoltage'; did you mean 'readBusVoltage'?
vol=INA.getBusVoltage();
^~~~~~~~~~~~~
readBusVoltage
exit status 1
no matching function for call to 'INA219::INA219(int)'

Any idea how to solve this
regards
Etienne

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions