pac1921 2.0.0.0
|
PAC1921 Click example. More...
Functions | |
void | application_init () |
void | application_task () |
int | main (void) |
PAC1921 Click example.
This example showcases how to measure voltage, current or power (load) data using the PAC1921 chip. Required modules are first initialized and after used to read and display the measured data.
The demo application is composed of two sections :
This function initializes and configures the logger and click modules. Default settings are written to three control/configuration registers in the default_cfg(...) function.
This function reads and displays voltage, current or power data from the chip, depending on the specified measurement mode and sample count. It does so every half a second.
void application_init | ( | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | ) |
int main | ( | void | ) |