qirx 2.0.0.0
|
QiRX Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint16_t | voltage |
uint16_t | v_ref = 5058 |
QiRX Click example.
This is an example that demonstrates the use of the Qi RX Click board.
The demo application is composed of two sections :
Initalizes I2C driver and makes an initial log.
This example shows the capabilities of the Qi RX click by measuring voltage of the connected battery. In order to get correct calculations user should change "v_ref" value to his own power supply voltage.
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 | ) |
uint16_t v_ref = 5058 |
uint16_t voltage |