View Full Version : Get remaining battery charge percentage from BQ27542
Mangal Prajapati
25th July 2019, 12:52
In my project i have to get battery status from the BQ27542 (battery monitor) using i2c. but as a beginner i don't know how to implement i2c code on qt . please give me sample code for this task.
d_stranz
26th July 2019, 01:24
Maybe you can find what you want in the QtSensors (https://doc.qt.io/qt-5/qtsensors-index.html) library?
Mangal Prajapati
26th July 2019, 06:22
i have seen QtSensors library but i not get how to implement i2c code for Getting remaining battery charge percentage from BQ27542.
anda_skoa
26th July 2019, 08:15
There are likely C and/or C++ libraries for accessing I2C on whatever platform you are.
Just use that in your project.
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.