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

Method GetTempInAXP192

lib/utility/AXP192.cpp:380–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380float AXP192::GetTempInAXP192() {
381 float ADCLSB = 0.1;
382 const float OFFSET_DEG_C = -144.7;
383 uint16_t ReData = Read12Bit(0x5E);
384 return OFFSET_DEG_C + ReData * ADCLSB;
385}
386
387float AXP192::GetBatPower() {
388 float VoltageLSB = 1.1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected