Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TactilityProject/Tactility
/ isPowerSwitchOn
Method
isPowerSwitchOn
Devices/unphone/Source/UnPhoneFeatures.cpp:275–277 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
273
}
274
275
bool UnPhoneFeatures::isPowerSwitchOn() const {
276
return gpio_get_level(pin::POWER_SWITCH) > 0;
277
}
278
279
void UnPhoneFeatures::turnPeripheralsOff() const {
280
setExpanderPower(false);
Callers
1
updatePowerSwitch
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected