battmon2 2.0.0.0
|
BATTMON2 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
BATTMON2 Click example.
This example demonstrates the use of BATT-MON 2 click board by monitoring the measurements of battery voltage, current, capacity, percentage, time-to-empty or time-to-full, as well as the chip internal temperature.
The demo application is composed of two sections :
Initializes the driver and checks the communication by reading and verifying the device ID.
Reads and displays on the USB UART the measurements of battery voltage, current, capacity, percentage, time-to-empty or time-to-full, as well as the chip internal temperature 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 | ) |