leddriver18 2.1.0.0
|
LED Driver 18 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the TLC5947, a 24-channel LED driver from Texas Instruments. Each channel is individually adjustable with 4096 pulse-width modulated (PWM) steps and has a programmable current value of all channels with a maximum of 30mA of LED current per channel.
We provide a library for the LED Driver 18 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 LED Driver 18 Click driver.
leddriver18_cfg_setup
Config Object Initialization function. leddriver18_init
Initialization function. leddriver18_default_cfg
Click Default Configuration function. leddriver18_set_output_pwm
LED Driver 18 set output channel PWM value function. leddriver18_write_config
LED Driver 18 write config function. leddriver18_set_cc_output
LED Driver 18 set constant current output function. This library contains API for LED Driver 18 Click driver.
The library initializes and defines the I2C bus drivers to write and read data for setting constant current output, as well as the default configuration for a PWM output value of the OUT pins.
The demo application is composed of two sections :
Initializes the driver and performs default configuration and sets
the device in output enabled mode.
This example demonstrates the use of the LED Driver 18 Click board by
changing PWM values for all output from a minimum value to maximum value and back to minimum controlling the brightness of the LEDs in the process.
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.