leddriver9 2.0.0.0
main.c File Reference

LEDDriver9 Click example. More...

#include "board.h"
#include "log.h"
#include "leddriver9.h"

Functions

void mode1_register_settings (void)
 
void mode2_register_settings (void)
 
void led_output_state (void)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

const uint8_t breathing_speed = 5
 

Detailed Description

LEDDriver9 Click example.

Description

This app demonstrates the configuration and control of the LED Driver 9 click board resulting in a nice breathing effect.

The demo application is composed of two sections :

Application Init

The initialization configures the UART LOG and I2C drivers and adjusts the Led Driver 9 click general register settings.

Application Task

The application task is a simple breathing effect on all LED out channels.

Author
Stefan Nikolic

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

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 )

◆ led_output_state()

void led_output_state ( void )

◆ main()

int main ( void )

◆ mode1_register_settings()

void mode1_register_settings ( void )

◆ mode2_register_settings()

void mode2_register_settings ( void )

Variable Documentation

◆ breathing_speed

const uint8_t breathing_speed = 5