leddriver16
2.1.0.0
|
LED Driver 16 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the PCA9745B, an SPI-configurable sixteen-channel constant current LED driver from NXP Semiconductors. Each LED output has an 8-bit resolution (256 steps) fixed-frequency individual PWM controller that operates at 31.25kHz with an adjustable duty cycle from 0 to 100% to allow the LED to be set to a specific brightness value. Powered through a selected mikroBUS™ power rail, either 3.3V or 5V, it provides a maximum output current of 57mA per channel and multiple built-in protection functions that protect the circuit during abnormalities.
We provide a library for the LED Driver 16 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 16 Click driver.
leddriver16_cfg_setup
Config Object Initialization function. leddriver16_init
Initialization function. leddriver16_default_cfg
Click Default Configuration function. leddriver16_set_led_state
This function sets the output state for the specified LEDs. leddriver16_set_led_pwm
This function sets the PWM duty cycle for the specified LEDs. leddriver16_set_led_iref
This function sets the gain settings for output current for the specified LEDs. This example demonstrates the use of LED Driver 16 click board by performing 3 different types of LED control (LED PWM dimming, LED blinking, and LED curtain).
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Performs 3 different types of LED control examples. Each example repeats 5 times before
switching to another. The name of the currently set example will be displayed on the USB UART accordingly.
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.