Skip to content

Commit

Permalink
ESP32: use explicit max. battery charge current setting for T-Beam v1…
Browse files Browse the repository at this point in the history
….2 [skip ci]
  • Loading branch information
lyusupov committed Sep 22, 2023
1 parent 8eac9ad commit 6d3362d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions software/firmware/source/SoftRF/src/platform/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ static void ESP32_setup()
axp_2xxx.disableIRQ(XPOWERS_AXP2101_ALL_IRQ);
axp_2xxx.clearIrqStatus();

axp_2xxx.setChargerConstantCurr(XPOWERS_AXP2101_CHG_CUR_500MA);
axp_2xxx.disableTSPinMeasure();
axp_2xxx.enableBattVoltageMeasure();

axp_2xxx.enableIRQ(XPOWERS_AXP2101_PKEY_LONG_IRQ |
XPOWERS_AXP2101_PKEY_SHORT_IRQ);

Expand Down

1 comment on commit 6d3362d

@lyusupov
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unzip the file below then update a T-Beam v1.2 by means of its WebUI
SoftRF-1.3-TBEAM12.zip

Please sign in to comment.