presence  2.0.0.0
Macros | Functions
main.c File Reference

Presence Click example. More...

#include "board.h"
#include "log.h"
#include "presence.h"

Macros

#define LOG_INT   1000
 

Functions

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

Detailed Description

Presence Click example.

Description

This application enables usage of sensor for motion and presence sensing and measuring of object's and ambient temperature.

The demo application is composed of two sections :

Application Init

Initializes driver init, start eeprom process and configuration chip for measurement.

Application Task

Check whether a new event (Motion, Presence or Temp threshold exceeded) is detected.

Author
MikroE Team

Macro Definition Documentation

◆ LOG_INT

#define LOG_INT   1000

Function Documentation

◆ application_init()

void application_init ( void  )

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()

void main ( void  )