microwave5 2.1.0.0
|
Microwave 5 Click Example. More...
Macros | |
#define | MICROWAVE5_THRESHOLD 0.5f |
#define | MICROWAVE5_FLAG_CLEAR 0 |
#define | MICROWAVE5_FLAG_SET 1 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Microwave 5 Click Example.
This example demonstrates the use of the Microwave 5 Click boardâ„¢ by reading and displaying the results of AD conversion and motion detection.
The demo application is composed of two sections :
The initialization of I2C or ADC module and log UART. After driver initialization, the app calculates the reference ADC value.
The demo application reads the ADC results, takes an ADC sample, compares the difference between the taken samples and the ADC reference value, and reports the movement if the difference is higher/lower than the selected threshold value. Results are being sent to the UART Terminal, where you can track their changes.
#define MICROWAVE5_FLAG_CLEAR 0 |
#define MICROWAVE5_FLAG_SET 1 |
#define MICROWAVE5_THRESHOLD 0.5f |
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 | ) |