c2x2rgb
2.1.0.0
|
2x2 RGB Click is a compact add-on board that contains a matrix of 4 “intelligent” RGB elements, forming a 2x2 display screen. This board features the KTD2052A, a 12-channel RGB LED driver from Kinetic Technologies. It is a fully programmable current regulator for up to four RGB LEDs (12 LEDs in total). The LED matrix consists of four LRTB GFTG, a 6-lead in-line MULTILEDs, from ams OSRAM. The LEDs have a 120-degree viewing angle.
We provide a library for the 2x2 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 2x2 RGB Click driver.
c2x2rgb_cfg_setup
Config Object Initialization function. c2x2rgb_init
Initialization function. c2x2rgb_default_cfg
Click Default Configuration function. c2x2rgb_set_rgb_led
2x2 RGB set RGB LED function. c2x2rgb_set_control
2x2 RGB set control function. This example demonstrates the use of the 2x2 RGB Click board™ by controlling the color of the LEDs [1-4].
The demo application is composed of two sections :
Initialization of SPI module and log UART. After driver initialization, the app executes a default configuration.
This simple example shows all LEDs in different colors. These LEDs actually consist of three single-colored LEDs (Red, Green and Blue) in a single package. Various colors can be reproduced by mixing the intensity of each LED.
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.