| 32 | constexpr uint32_t BUZZER_DUTY_50_PERCENT = 4096; // 50% of 13-bit (8192) |
| 33 | |
| 34 | PaperS3Power::PaperS3Power( |
| 35 | std::unique_ptr<ChargeFromAdcVoltage> chargeFromAdcVoltage, |
| 36 | gpio_num_t powerOffPin |
| 37 | ) |
| 38 | : chargeFromAdcVoltage(std::move(chargeFromAdcVoltage)), |
| 39 | powerOffPin(powerOffPin) { |
| 40 | LOG_I(TAG, "Initialized M5Stack PaperS3 power management"); |
| 41 | } |
| 42 | |
| 43 | void PaperS3Power::buzzerLedcInit() { |
| 44 | if (buzzerInitialized) { |
nothing calls this directly
no outgoing calls
no test coverage detected