leddriver7 2.0.0.0
|
LED Driver 7 click is a Click boardâ„¢ equipped with the LTC3490, single cell 350mA LED driver from Analog Devices.
We provide a library for the LedDriver7 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 LedDriver7 Click driver.
- Initialization function.void leddriver7_cfg_setup ( leddriver7_cfg_t *cfg );
LEDDRIVER7_RETVAL leddriver7_init ( leddriver7_t *ctx, leddriver7_cfg_t *cfg );
- Generic read function.void leddriver7_generic_write ( leddriver7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len );
void leddriver7_generic_read ( leddriver7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len );
This application is portable lighting and rechargeable flashlights.
The demo application is composed of two sections :
Initalizes I2C driver and writes an initial log.
This example demonstrates the use of LED Driver 7 Click board, by cycling wiper positions of AD5171 Digital Potentiometer.
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.