We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2019-03-28
Package Version: 1.0.0.1
mikroSDK Library: 1.0.0.0
Category: LED segment
Downloaded: 3837 times
Not followed.
License: MIT license
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. It communicates with the target microcontroller over the following pins on the mikroBUS line: AN, RST, PWM, and INT.
Do you want to subscribe in order to receive notifications regarding "LED Flash click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "LED Flash click" changes.
Do you want to report abuse regarding "LED Flash click".
Library Description
The library covers all the necessary functions to control LED Flash click board. LED Flash click
communicates with the target board through the AN, RST, PWM and INT line. This library
offers functions for turning on or off torch and flash mode as well as charging of the supercapacitor.
It also allow the user to check flash ready flag.
Key functions:
void ledflash_flashEnable()
- Function enables flash.Examples Description
The application is composed of three sections:
void applicationTask() { uint8_t state; mikrobus_logWrite( " Charge Supercapacitor Enable ", _LOG_LINE ); ledflash_charSupcapEnable(); Delay_ms( 1000 ); state = ledflash_flashRdyFlag(); if( state == 0 ) { mikrobus_logWrite( " Flash ON! ", _LOG_LINE ); ledflash_flashEnable(); } else { mikrobus_logWrite( " Flash OFF! ", _LOG_LINE ); ledflash_flashDisable(); } mikrobus_logWrite( "----------------------------------", _LOG_LINE ); }
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