Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
300
void UnPhoneFeatures::wakeOnPowerSwitch() const {
301
esp_sleep_enable_ext0_wakeup(pin::POWER_SWITCH, 1);
302
}
303
304
bool UnPhoneFeatures::isUsbPowerConnected() const {
305
return batteryManagement->isUsbPowerConnected();
Callers
1
updatePowerSwitch
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected