ledflash
2.0.0.0
|
LED Flash Click functions as a high power LED flash, and carries the CAT3224 flash LED driver. The Click is designed to run on a 5V power supply.
We provide a library for the LedFlash 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for LedFlash Click driver.
void ledflash_cfg_setup ( ledflash_cfg_t *cfg );
LEDFLASH_RETVAL ledflash_init ( ledflash_t *ctx, ledflash_cfg_t *cfg );
void ledflash_char_supcap_enable ( ledflash_t *ctx );
void ledflash_flash_enable ( ledflash_t *ctx );
uint8_t ledflash_flash_rdy_flag ( ledflash_t *ctx );
This application switching on and off led flash.
The demo application is composed of two sections :
Initialization driver enables GPIO, starts write log and issues a warning.
This example demonstrates the use of LED Flash Click board by flashing with LEDs when ever supercapacitor is at a full voltage.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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.