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

Method SetSleep

lib/utility/AXP192.cpp:283–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void AXP192::SetSleep(void) {
284 Write1Byte(0x31, Read8bit(0x31) | (1 << 3));
285 Write1Byte(0x90, 0x00); // GPIO0 voltage 0
286 Write1Byte(0x12, 0x09); // CDC1, LDO3
287 Write1Byte(0x12, Read8bit(0x12) & 0xA1); // Disable all outputs but DCDC1
288}
289
290void AXP192::WakeUpDisplayAfterLightSleep(void) {
291 // LDO2 is LCD Backlight

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected