| 417 | } |
| 418 | |
| 419 | void AXP192::SetLDO2(bool State) { |
| 420 | uint8_t buf = Read8bit(0x12); |
| 421 | if (State == true) |
| 422 | buf = (1 << 2) | buf; |
| 423 | else |
| 424 | buf = ~(1 << 2) & buf; |
| 425 | Write1Byte(0x12, buf); |
| 426 | } |
| 427 | |
| 428 | // Cut all power, except for LDO1 (RTC) |
| 429 | void AXP192::PowerOff() { |
nothing calls this directly
no outgoing calls
no test coverage detected