Battery level measuring

how to detect the battery level in arduino uno using BQ25622 ic.
please provide refence code

Your topic does not indicate a problem with IDE 2.x and therefore has been moved to a more suitable location on the forum.


Did you do a search? I do not know if the below works but I did find this in no time: GitHub - keith06388/PMIC_BQ25622: Arduino Library for Power Management and Battery Charging IC BQ25622 from Texas Instruments..

hello @sterretje thanks for your replay, thats link of git having driver in c++ im looking for c code

Google "BQ25622 Arduino".

Regards

When using the Arduino IDE, code is mostly written in C++. What is special about your setup that requires C instead of C++?

@sterretje i i just used arduino uno for confirmation, i want my devlopment in esp32s3 using espress if ide

No experience with it (or ESP32 based boards for that matter) but I'm rewasonably sure that the Espressif IDE supports C++.

I don't want to chase you away but maybe you're better off on https://esp32.com/.