proximity6  2.0.0.0
Functions
main.c File Reference

Proximity6 Click example. More...

#include "board.h"
#include "log.h"
#include "proximity6.h"

Functions

void proximity6_log_graphic_res (proximity6_t *ctx)
 
void proximity6_log_position_res (proximity6_t *ctx)
 
void application_init (void)
 
void application_task (void)
 
void main (void)
 

Detailed Description

Proximity6 Click example.

Description

This application can detect the proximity of an object via sensor and can show the results of proximity as a graphic view, or show the position of the object.

The demo application is composed of two sections :

Application Init

Sets the registers in default state and configures the device to work in proper operating mode (Proximity Mode).

Application Task

Example can show the data register values as graphic view in desired resolution. Also can determine from which side the object (body) affects on the sensor and logs results on USB UART. Results will be shown only when one or more data registers are updated with the new value (sensor detects the change).

Additional Functions :

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

void main ( void  )

◆ proximity6_log_graphic_res()

void proximity6_log_graphic_res ( proximity6_t ctx)

◆ proximity6_log_position_res()

void proximity6_log_position_res ( proximity6_t ctx)