lightmixsens 2.0.0.0
|
LightMixSens Click example. More...
Functions | |
void | prox_app (void) |
Light mix sens proximity function. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
lightmixsens_data_obj | lightmixsens_data |
char | prox_str [20] |
LightMixSens Click example.
This example show usage of Light Mix Sens Click. It switches the IR light for separate and measure sectar of RGB lights. Click also measure proximity from the object using light source.
The demo application is composed of two sections :
Initializes all necessary peripherals and pins, initializes I2C driver and performs the Click board default configuration to allow ALS/Color and Proximity measurements.
Waits until ALS/Color integration cycle was done and then reads the entire measurement. The all results will be sent to the selected UART terminal.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
void prox_app | ( | void | ) |
Light mix sens proximity function.
This is function which determines the proximity results.
lightmixsens_data_obj lightmixsens_data |
char prox_str[20] |