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

Method SetPeripherialsPower

lib/utility/AXP192.cpp:433–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433void AXP192::SetPeripherialsPower(uint8_t state) {
434 if (!state)
435 Write1Byte(0x10, Read8bit(0x10) & 0XFB);
436 else if (state)
437 Write1Byte(0x10, Read8bit(0x10) | 0X04);
438 // uint8_t data;
439 // Set EXTEN to enable 5v boost
440}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected