gyro5 2.0.0.0
main.c File Reference

Gyro5 Click example. More...

#include "board.h"
#include "log.h"
#include "gyro5.h"

Functions

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

Variables

uint8_t data_ready_flag
 
float temperature_value
 
float x_axis_value
 
float y_axis_value
 
float z_axis_value
 

Detailed Description

Gyro5 Click example.

Description

This application shows temperature and gyroscope axes values

The demo application is composed of two sections :

Application Init

Initializes GPIO pins, I2C and LOG modules.

Application Task

Checks data ready INT, gets temperature and axes data and LOGs those values

Author
Luka Filipovic

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

◆ data_ready_flag

uint8_t data_ready_flag

◆ temperature_value

float temperature_value

◆ x_axis_value

float x_axis_value

◆ y_axis_value

float y_axis_value

◆ z_axis_value

float z_axis_value