Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerMeterTdisplay not working #1

Open
papbo opened this issue Apr 5, 2023 · 6 comments
Open

PowerMeterTdisplay not working #1

papbo opened this issue Apr 5, 2023 · 6 comments

Comments

@papbo
Copy link

papbo commented Apr 5, 2023

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

@VolosR
Copy link
Owner

VolosR commented Apr 5, 2023 via email

@papbo
Copy link
Author

papbo commented Apr 5, 2023

hello, thanks for the reply, but I don't see the attached library???

@VolosR
Copy link
Owner

VolosR commented Apr 5, 2023 via email

@papbo
Copy link
Author

papbo commented Apr 5, 2023

I am really confused but there is no attachment on the mail, maybe give me a link to this library.
Regards
Etienne

@VolosR
Copy link
Owner

VolosR commented Apr 5, 2023 via email

@papbo
Copy link
Author

papbo commented Apr 5, 2023

HI,
Yes, in the mean time I have discovered this library in the list and now is OK
Have a nice day and I am using other software from your list, it is a great job.
Etienne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants