leddriver3
2.0.0.0
|
LED Driver 3 Click is an RGB LED driver, capable of driving RGB LEDs with up to 30mA per segment, via the digital I2C interface.
We provide a library for the LedDriver3 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 LedDriver3 Click driver.
void leddriver3_cfg_setup ( leddriver3_cfg_t *cfg );
LEDDRIVER3_RETVAL leddriver3_init ( leddriver3_t *ctx, leddriver3_cfg_t *cfg );
void leddriver3_default_cfg ( leddriver3_t *ctx );
void leddriver3_set_rgb_color ( leddriver3_t *ctx, rgb_t *rgb );
void leddriver3_set_color ( leddriver3_t *ctx, uint32_t color );
void leddriver3_set_timer ( leddriver3_t *ctx, uint8_t time );
This app changes color and intensity of light.
The demo application is composed of two sections :
Driver initialize.
Changes color and intensity of light.
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.