Results 1 to 4 of 4

Thread: Get remaining battery charge percentage from BQ27542

  1. #1
    Join Date
    Jul 2019
    Posts
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Get remaining battery charge percentage from BQ27542

    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.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Get remaining battery charge percentage from BQ27542

    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.

  3. #3
    Join Date
    Jul 2019
    Posts
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Get remaining battery charge percentage from BQ27542

    i have seen QtSensors library but i not get how to implement i2c code for Getting remaining battery charge percentage from BQ27542.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Get 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,
    _

Similar Threads

  1. how can i draw rectanglar percentage?
    By icapathos in forum Qt Programming
    Replies: 7
    Last Post: 22nd August 2013, 14:36
  2. Font size in percentage
    By pssss in forum Qt Programming
    Replies: 2
    Last Post: 9th September 2011, 17:27
  3. Logging battery voltage and current
    By nanz in forum Qt Programming
    Replies: 1
    Last Post: 5th July 2011, 22:45
  4. progress bar look like battery
    By bibhukalyana in forum Newbie
    Replies: 4
    Last Post: 16th June 2011, 10:14
  5. Replies: 1
    Last Post: 9th September 2008, 01:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.