battmon3 2.0.0.0
|
BATTMON3 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
BATTMON3 Click example.
This example demonstrates the use of BATT-MON 3 click by measuring the battery voltage, current and used capacity, as well as the chip internal temperature.
The demo application is composed of two sections :
Initialized the driver and performs the click default configuration.
Reads the battery voltage (mV), current (mA), used capacity (mAh) and the chip internal temperature (Celsius) and displays the results on the USB UART approximately once per second.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |