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.
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.
Maybe you can find what you want in the QtSensors library?
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
i have seen QtSensors library but i not get how to implement i2c code for Getting remaining battery charge percentage from BQ27542.
There are likely C and/or C++ libraries for accessing I2C on whatever platform you are.
Just use that in your project.
Cheers,
_
Bookmarks