From 2b147d2199adcafbf756cdf21b66466bc03f5979 Mon Sep 17 00:00:00 2001 From: Darsey Litzenberger Date: Thu, 20 Nov 2025 23:23:55 -0700 Subject: [PATCH] Disable m5stack-specific configuration --- components/axp2101/axp2101.cpp | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/components/axp2101/axp2101.cpp b/components/axp2101/axp2101.cpp index a3e904f..59040d6 100644 --- a/components/axp2101/axp2101.cpp +++ b/components/axp2101/axp2101.cpp @@ -41,6 +41,7 @@ static const char *TAG = "axp2101.sensor"; void AXP2101Component::setup() { ESP_LOGCONFIG(TAG, "getID:0x%x", PMU.getChipID()); +#if 0 // Set the minimum common working voltage of the PMU VBUS input, // below this value will turn off the PMU @@ -130,17 +131,17 @@ void AXP2101Component::setup() // PMU.enableDC1(); - PMU.enableDC2(); - PMU.enableDC3(); - PMU.enableDC4(); - PMU.enableDC5(); - PMU.enableALDO1(); - PMU.enableALDO2(); - // PMU.enableALDO3(); // This is the speaker - PMU.enableALDO4(); - PMU.enableBLDO1(); - PMU.enableBLDO2(); - PMU.enableCPUSLDO(); +// PMU.enableDC2(); +// PMU.enableDC3(); +// PMU.enableDC4(); +// PMU.enableDC5(); +// PMU.enableALDO1(); +// PMU.enableALDO2(); +// // PMU.enableALDO3(); // This is the speaker +// PMU.enableALDO4(); +// PMU.enableBLDO1(); +// PMU.enableBLDO2(); +// PMU.enableCPUSLDO(); // PMU.enableDLDO1(); // This is the vibration motor // PMU.enableDLDO2(); @@ -297,6 +298,7 @@ void AXP2101Component::setup() // Set Button Battery charge voltage PMU.setButtonBatteryChargeVoltage(3300); +#endif } void AXP2101Component::dump_config() { @@ -340,7 +342,9 @@ void AXP2101Component::update() { this->batterycharging_bsensor_->publish_state(vcharging); } +#if 0 UpdateBrightness(); +#endif } void AXP2101Component::Write1Byte( uint8_t Addr , uint8_t Data )