pir2 2.1.0.0
Macros | Functions
main.c File Reference

PIR 2 Click Example. More...

#include "board.h"
#include "log.h"
#include "pir2.h"

Macros

#define PIR2_VOLTAGE_TRESHOLD   2.5f
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

PIR 2 Click Example.

Description

This example demonstrates the use of PIR 2 Click boards.

The demo application is composed of two sections :

Application Init

Initializes the driver and selects the driver interface.

Application Task

It checks if the sensor has detected movement and displays message on the USB UART.

Author
Stefan Ilic

Macro Definition Documentation

◆ PIR2_VOLTAGE_TRESHOLD

#define PIR2_VOLTAGE_TRESHOLD   2.5f

Function Documentation

◆ application_init()

void application_init ( void  )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void  )

◆ main()

int main ( void  )