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

Method wakeOnPowerSwitch

Devices/unphone/Source/UnPhoneFeatures.cpp:300–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void UnPhoneFeatures::wakeOnPowerSwitch() const {
301 esp_sleep_enable_ext0_wakeup(pin::POWER_SWITCH, 1);
302}
303
304bool UnPhoneFeatures::isUsbPowerConnected() const {
305 return batteryManagement->isUsbPowerConnected();

Callers 1

updatePowerSwitchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected