MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / PaperS3Power

Method PaperS3Power

Devices/m5stack-papers3/Source/devices/Power.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32constexpr uint32_t BUZZER_DUTY_50_PERCENT = 4096; // 50% of 13-bit (8192)
33
34PaperS3Power::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
43void PaperS3Power::buzzerLedcInit() {
44 if (buzzerInitialized) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected