leddriver15 2.1.0.0
|
LED Driver 15 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the MP3309C, a fully integrated synchronous boost white LED driver with an I2C interface from Monolithic Power Systems. The MP3309C offers high efficiency, delivers up to 40mA of LED current, and operates from a voltage of mikroBUS™ power rails, supporting up to 8 white LEDs in series. It also features a programmable switching frequency to optimize efficiency, supports analog and PWM dimming, and has multiple built-in protection functions that protect the circuit during abnormalities.
We provide a library for the LED Driver 15 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 15 Click driver.
leddriver15_cfg_setup
Config Object Initialization function. leddriver15_init
Initialization function. leddriver15_default_cfg
Click Default Configuration function. leddriver15_set_i2c_dimming
This function sets the LEDs dimming level in I2C mode. leddriver15_enable_device
This function enables the device by setting the EN pin to high logic state. leddriver15_disable_device
This function disables the device by setting the EN pin to low logic state. This example demonstrates the use of LED Driver 15 click board by changing the LEDs dimming level.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Changes the LEDs dimming level in I2C mode every 500ms. The dimming level will be displayed on the USB UART.
It is recommended to connect 8 LEDs in series (40mA) to the output connector.
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.