| 247 | } |
| 248 | |
| 249 | bool 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 | |
| 260 | bool UnPhoneFeatures::setIrPower(bool on) const { |
| 261 | assert(ioExpander != nullptr); |
nothing calls this directly
no outgoing calls
no test coverage detected