leddriver10 2.0.0.0
|
LED Driver 10 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the TLC59283, a 16-channel, constant-current sink light-emitting diode (LED) driver with pre-charge FET from Texas Instruments.
We provide a library for the LEDDriver10 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 LEDDriver10 Click driver.
leddriver10_cfg_setup
This function initializes click configuration structure to initial values. leddriver10_init
This function initializes all necessary pins and peripherals used for this click board. leddriver10_pwm_start
This function starts the PWM module output. leddriver10_set_channels
This function sets all channels to desired value by using SPI serial interface. leddriver10_read_channels
This function reads the current state of all channels by using SPI serial interface. leddriver10_set_duty_cycle
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ). This example demonstrates the use of LED Driver 10 click board.
The demo application is composed of two sections :
Initializes the driver, starts the PWM module and enables all channels.
Controls the LEDs brightness by changing the PWM duty cycle. The PWM duty cycle percentage will be logged on 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.