8#ifndef WOMBAT_POWER_MONITORING_BATTERY_H
9#define WOMBAT_POWER_MONITORING_BATTERY_H
12#include "Adafruit_INA219.h"
Battery power monitoring handler.
Definition: battery.h:24
static double get_voltage()
Get the voltage of the battery.
Definition: battery.cpp:44
static const uint8_t batteryAddr
Default I2C battery address (cannot be changed without modifying PCB)
Definition: battery.h:27
static void wakeup()
Wakes up the INA219 IC.
Definition: battery.cpp:102
static float get_current()
Get the current flowing from/to the battery.
Definition: battery.cpp:78
static void sleep()
Puts the INA219 IC in a sleep mode.
Definition: battery.cpp:93
static void begin()
Setup INA219 IC to monitoring battery voltage and current.
Definition: battery.cpp:23