MCPcopy 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
275bool UnPhoneFeatures::isPowerSwitchOn() const {
276 return gpio_get_level(pin::POWER_SWITCH) > 0;
277}
278
279void UnPhoneFeatures::turnPeripheralsOff() const {
280 setExpanderPower(false);

Callers 1

updatePowerSwitchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected