co_2 2.0.0.0
|
CO2 Click example. More...
#include "board.h"
#include "log.h"
#include "co2.h"
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
CO2 Click example.
This application enables usage of very accurate CO sensor.
The demo application is composed of two sections :
Initializes I2C interface and performs the device configuration for properly working.
Gets CO (Carbon Monoxide) data as ppm value every 300 miliseconds. Results will be logged on UART. The CO value range is from 0 to 1000 ppm.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |