Disable m5stack-specific configuration
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user