rgbring
2.1.0.0
|
RGB Ring Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
RGB Ring Click Example.
This example demonstrates the use of RGB Ring click board by controling an RGB ring by cycling through a set of predefined colors. Each color is displayed by lighting up the LEDs in sequence around the ring. After the last LED is lit, the code waits for a button press before moving on to the next color in the sequence. The button press triggers the transition to the next color in the array.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the color to black (all LEDs off).
Controls an LED ring by cycling through colors and waits for user input to change the ring's color. The button press is required to move to the next color in the sequence. The current color's name and RGB value are logged to the USB UART.
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 | ) |