pollution 2.0.0.0
main.c File Reference

Pollution Click example. More...

#include "board.h"
#include "log.h"
#include "pollution.h"

Functions

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

Variables

float value_volt
 
float value_res
 

Detailed Description

Pollution Click example.

Description

Pollution click carries the VOC gas sensor and has high sensitivity to organic gases such as methanal (also known as formaldehyde), benzene, alcohol, toluene, etc.

The demo application is composed of two sections :

Application Init

Application Init performs Logger and Click initialization.

Application Task

This is an example which demonstrates the usage of Pollution Click board. Pollution Click reads ADC value, load voltage from ADC value, and reads corrected resistance of the sensor where results are being sent to the UART terminal where you can track changes.

Author
Mihajlo Djordjevic

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

◆ main()

int main ( void )

Variable Documentation

◆ value_res

float value_res

◆ value_volt

float value_volt