ledflash4
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the LED Flash 4 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 Flash 4 Click driver.
ledflash4_cfg_setup
Config Object Initialization function. ledflash4_init
Initialization function. ledflash4_default_cfg
Click Default Configuration function. ledflash4_set_led1_current
This function sets the LED1 maximum current in mA. ledflash4_set_led2_current
This function sets the LED2 maximum current in mA. ledflash4_set_stb_pin
This function sets the strobe (STB) pin logic state. This example demonstrates the use of LED Flash 4 click board by toggling the LEDs output.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets
the click in flash mode with the LED current of 50mA for both LEDs. The strobe pin is set to active high level type.
Toggles the LEDs output every 2 seconds using the strobe pin, and displays the LEDs state 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. UART terminal is available in all MikroElektronika compilers.