c4x4rgb 2.0.0.0
|
4x4 RGB click is a matrix of 16 intelligent RGB elements, forming a 4x4 display screen.
We provide a library for the 4x4Rgb 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for 4x4Rgb Click driver.
c4x4rgb_cfg_setup
This function initializes click configuration structure to init state. c4x4rgb_init
This function initializes all necessary pins and peripherals used for this click. c4x4rgb_set_diode
This function allows to set color of one diode. c4x4rgb_fill_screen
This function sets every diode on selected color. This application is used for powering 4x4 RGB LED matrix.
The demo application is composed of two sections :
Initialization driver enables - GPIO.
This is an example which demonstrates the use of 4x4 RGB Click board. This simple example shows all ten numbers in different colors on 4x4 RGB click. The 4x4 RGB click carries a matrix of 16 RGB LEDs and an MCP1826 low dropout regulator. 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.
Make sure the logic delays are defined for your system in the c4x4rgb_delays.h file.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.