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

Method getBacklightPower

Devices/unphone/Source/UnPhoneFeatures.cpp:249–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249bool UnPhoneFeatures::getBacklightPower(bool& on) const {
250 assert(ioExpander != nullptr);
251 uint32_t level_mask;
252 if (esp_io_expander_get_level(ioExpander, expanderpin::BACKLIGHT, &level_mask) == ESP_OK) {
253 on = level_mask != 0U;
254 return true;
255 } else {
256 return false;
257 }
258}
259
260bool UnPhoneFeatures::setIrPower(bool on) const {
261 assert(ioExpander != nullptr);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected