c1x4rgb
2.1.0.0
|
1x4 RGB Click example More...
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) |
1x4 RGB Click example
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 :
Initialization of I2C module and log UART. After driver initialization, the app executes a default configuration.
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.
#define DEMO_COLOR_INT_0 0 |
#define DEMO_COLOR_INT_100 100 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |