co2 2.0.0.0
|
CO2 Click example. More...
Macros | |
#define | CO2_AIR_HUMIDITY 40/*< Relative air humidity in % */ |
#define | CO2_AIR_PRESSURE 1008/*< Relative air pressure in mBar */ |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
CO2 Click example.
This example showcases ability of Click board. It reads ID's configures device for operation work and reads CO2 gas concentration in air and temperature of IC every second.
The demo application is composed of two sections :
Initialization of host communication modules (UART, I2C). Checks device and serial ID's from device. Then calls default configuration function that resets device, self tests it selft and configures for measuring CO2 concentration from air.
Reads air CO2 gas concentration in precentage and IC's temperature in deg Celzius in span of 1 second and logs data to UART Terminal.
#define CO2_AIR_HUMIDITY 40/*< Relative air humidity in % */ |
#define CO2_AIR_PRESSURE 1008/*< Relative air pressure in mBar */ |
void application_init | ( | void | ) |
< Logger config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |