rgbring
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the RGB Ring 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 RGB Ring Click driver.
rgbring_cfg_setup
Config Object Initialization function. rgbring_init
Initialization function. rgbring_default_cfg
Click Default Configuration function. rgbring_get_int_pin
This function returns the INT pin logic state. rgbring_set_led_color
This function sets the color of the selected LED in the LED matrix. rgbring_write_led_matrix
This function writes the LED matrix data from the click context object. 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.
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.