c1x4rgb  2.1.0.0
Macros | Functions
main.c File Reference

1x4 RGB Click example More...

#include "board.h"
#include "log.h"
#include "c1x4rgb.h"

Macros

#define DEMO_COLOR_INT_0   0
 
#define DEMO_COLOR_INT_100   100
 

Functions

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

Detailed Description

1x4 RGB Click example

Description

This example demonstrates the use of the 1x4 RGB Click board by controlling the color of the LEDs [LD1-LD4].

The demo application is composed of two sections :

Application Init

Initialization of I2C module and log UART. After driver initialization, the app executes a default configuration.

Application Task

The demo example shows the color change of four RGB LEDs, starting with red color, through green and blue, and ending with white. These LEDs actually consist of three single-colored LEDs (Red-Green-Blue) in a single package. Various colors can be reproduced by mixing the intensity of each LED.

Author
Nenad Filipovic

Macro Definition Documentation

◆ DEMO_COLOR_INT_0

#define DEMO_COLOR_INT_0   0

◆ DEMO_COLOR_INT_100

#define DEMO_COLOR_INT_100   100

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  )

◆ main()

int main ( void  )