altitude 2.0.0.0
main.c File Reference

Altitude Click example. More...

#include "board.h"
#include "log.h"
#include "altitude.h"

Functions

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

Detailed Description

Altitude Click example.

Description

This is a example which demonstrates the use of Altitude Click board. This demo example offers the altitude [m], pressure [mbar] and temperature [deg C] measurements from sensor.

The demo application is composed of two sections :

Application Init

Initializes I2C driver and all used pins, performs a default configuration for Altitude Click board and initializes the uart console for results logging.

Application Task

Shows two different uses of sensor, altimeter and barometer mode. Reads the altitude, pressure and temperature results in standard units and sends this results to the console.

Author
Nemanja Medakovic

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 )