Closed Waldmensch1 closed 3 years ago
Regarding axp192, you can check here, I think you only enable the adc current detection, but not the voltage function, please check here https://github.com/lewisxhe/AXP202X_Library/blob/master/examples/axp_adc/axp_adc.ino
The Example Source is very mightful. Is there a simple approach to have a simple Battery Voltage check? In earlier Board Revisions only GPIO 35 was needed to analog read because there was a Voltage divider on vs. Battery power. I tried to move the code from example partially over to an existing project but axp.getBattVoltage() returns always 3.00 to me
I use in Setup
and in loop. I don't understand why pmu_irq is set to false and never again to true. So this is only executed once. Do I have to set all the flags either how it's done in the example?