Closed patrickpollet1966 closed 4 years ago
You must enable the adc register before you can read the adc data
Thanks a lot, it works well now. It was my fault, i have missed this point concerning the activation of the ADCs. I was leaded in mistake because the battery voltage was working without.
Dear All,
for a few hours i try to use getBattChargeCurrent() to read the actual charging current. (In fact i want to monitor the charging state by reading the battery voltage and the current)
The issue is that getBattChargeCurrent() always return 0 but the battery is currently charging as the battery voltage increase (and an ampermeter shows me that current is flowing in the battery accordingly with the value i previously set by setChargeControlCur() ).
Did someone already have successful results with getBattChargeCurrent() ? Did i miss something or is it a bug ?
Edit : i use an AXP192 on the T-Beam board.
Best regards.
Patrick Pollet