MCPcopy Create free account
hub / github.com/BruceDevices/firmware / PowerOff

Method PowerOff

lib/utility/AXP192.cpp:429–431  ·  view source on GitHub ↗

Cut all power, except for LDO1 (RTC)

Source from the content-addressed store, hash-verified

427
428// Cut all power, except for LDO1 (RTC)
429void AXP192::PowerOff() {
430 Write1Byte(0x32, Read8bit(0x32) | 0x80); // MSB for Power Off
431}
432
433void AXP192::SetPeripherialsPower(uint8_t state) {
434 if (!state)

Callers 1

powerOffFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected