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

Method setVibePower

Devices/unphone/Source/UnPhoneFeatures.cpp:265–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool UnPhoneFeatures::setVibePower(bool on) const {
266 assert(ioExpander != nullptr);
267 return esp_io_expander_set_level(ioExpander, expanderpin::VIBE, on ? 1U : 0U) == ESP_OK;
268}
269
270bool UnPhoneFeatures::setExpanderPower(bool on) const {
271 assert(ioExpander != nullptr);

Callers 2

powerInfoBuzzFunction · 0.80
unPhonePowerOnFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected