irreflect 2.0.0.0
main.c File Reference

IR reflect Click example. More...

#include "board.h"
#include "log.h"
#include "irreflect.h"

Functions

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

Detailed Description

IR reflect Click example.

Description

Example demonstrates the use of IR Reflect Click board.

The demo application is composed of two sections :

Application Init

Initialization driver enables - Start write log.

Application Task

This is a example which demonstrates the use of IR Reflect Click board. On this type of photointerrupter the infrared emitter and receiver are facing the same direction, the infrared beam from the emitter gets bounced back to the receiver when an object is placed within the detecting range of the sensor ( optimal range is 3mm ). These sensors are used to detect an object's presence or motion, such as a piece of paper passing through a printer and counting when sensor is triggered. Results are being sent to the Usart Terminal where you can track their changes. Data logs on usb uart when the sensor is triggered.

Author
MikroE Team

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

int main ( void )