c2x4rgb
2.1.0.0
|
2x4 RGB Click is a compact add-on board for dynamic and colorful lighting control. This board features an array of 2x4 RGB LEDs (WL-ICLED 1312121320437) from Würth Elektronik, featuring individual control of each red, green, and blue component via an integrated IC and pulse width modulation (PWM) technology. The board also includes an LSF0102 voltage translator, ensuring seamless operation with both 3.3V and 5V logic systems, and supports MIKROE’s innovative Click Snap feature for flexible installation options. With its precise color control and flexible design, 2x4 RGB Click is ideal for applications such as ambient lighting, displays, and visual indicators in various consumer electronics and industrial environments.
We provide a library for the 2x4 RGB Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for 2x4 RGB Click driver.
c2x4rgb_cfg_setup
Config Object Initialization function. c2x4rgb_init
Initialization function. c2x4rgb_default_cfg
Click Default Configuration function. c2x4rgb_set_leds_intensity
This function sets the brightness and current gain level of all LEDs in the led matrix. c2x4rgb_set_led_color
This function sets the color of the selected LED in the LED matrix. c2x4rgb_write_led_matrix
This function writes the LED matrix data from the click context object. This example demonstrates the use of 2x4 RGB click board by cycling through
a set of colors, gradually increasing the brightness of each LED in a sequence, and then decreasing the brightness before moving on 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 LEDs brightness and current gain to a minimum and the color to black (all LEDs off).
Cycles through a set of colors, gradually increases the brightness of each LED
in a sequence, and then decreases the brightness before moving on to the next color in the array. The current color's name and RGB value are logged to the USB UART.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.