leddriver9
2.0.0.0
|
LED Driver 9 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the TLC59116, I2C bus-controlled 16-channel LED driver optimized for red/green/blue/amber (RGBA) color mixing and backlight application from Texas Instruments.
We provide a library for the LEDDriver9 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 LEDDriver9 Click driver.
leddriver9_cfg_setup
Config Object Initialization function. leddriver9_init
Initialization function. leddriver9_default_cfg
Click Default Configuration function. leddriver9_ledout_state
This function configures the LEDOUTx registers from the defined config structure. leddriver9_set_pwm
This function sets the PWM duty cycle on selected ledout channel. leddriver9_set_dimmer_pwm
This function sets the group PWM duty cycle ( GRPPWM ) which can be used for dimming already set PWM channels. This app demonstrates the configuration and control of the LED Driver 9 click board resulting in a nice breathing effect.
The demo application is composed of two sections :
The initialization configures the UART LOG and I2C drivers and adjusts the Led Driver 9 click general register settings.
The application task is a simple breathing effect on all LED out channels.
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.