proximity9 2.0.0.0
main.c File Reference

Proximity9 Click example. More...

#include "board.h"
#include "log.h"
#include "proximity9.h"

Functions

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

Detailed Description

Proximity9 Click example.

Description

This application is proximity sensing (PS) and ambient light sensing (ALS) device.

The demo application is composed of two sections :

Application Init

Initializes I2C interface and performs a device configurations.

Application Task

Performs a data reading and interrupt flag checking. Allows data and interrupt flags messages to be showed on the uart terminal.

note: The ALS sensitivity depends on the ALS integration time setting. The longer integration time has higher sensitivity. The Proximity (PS) output data can be set to 12-bit or 16-bit resolution.

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

◆ main()

int main ( void )