smoke 2.0.0.0
|
Smoke Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Smoke Click example.
This click includes internal LEDs, photodetectors, optical elements, and low-noise electronics with ambient light rejection. The sensor can detect a wide variety of smoke particle sizes. It also has an on-chip temperature sensor for calibrating the temperature dependence of the particle sensing subsystem. The temperature sensor has an inherent resolution 0.0625°C.
The demo application is composed of two sections :
Initalizes I2C driver, applies "set registers check green values" settings, "enable FIFO data ready interrupt" and makes an initial log.
This example demonstrates the use of Smoke Click board. It reads reflected green values and temperature from an internal sensor and displays the results on USART terminal. It usualy takes two or three readings in order to get corect readings. Expect big values when you do.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |