rgbdriver
2.0.0.0
|
RGB Driver click is an RGB LED driver, capable of driving RGB LED stripes, LED fixtures and other RGB LED applications that demand an increased amount of current and voltage.
We provide a library for the RgbDriver 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 RgbDriver Click driver.
void rgbdriver_cfg_setup ( rgbdriver_cfg_t *cfg );
RGBDRIVER_RETVAL rgbdriver_init ( rgbdriver_t *ctx, rgbdriver_cfg_t *cfg );
void rgbdriver_default_cfg ( rgbdriver_t *ctx );
void rgbdriver_set_rgb_color ( rgbdriver_t *ctx, uint8_t red, uint8_t green, uint8_t blue );
void rgbdriver_set_color ( rgbdriver_t *ctx, uint32_t color );
void rgbdriver_shut_down ( rgbdriver_t *ctx );
This application sets the brightness over RGB value.
The demo application is composed of two sections :
Initializes driver and logger, and configures the click board.
Changes the color of RGB LED tape connected to the click board every 2 seconds. The name of the selected color will be displayed on USB UART.
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.