TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136557 times)
  2. FAT32 Library (69762 times)
  3. Network Ethernet Library (55856 times)
  4. USB Device Library (46199 times)
  5. Network WiFi Library (41818 times)
  6. FT800 Library (41023 times)
  7. GSM click (28934 times)
  8. PID Library (26386 times)
  9. mikroSDK (26297 times)
  10. microSD click (25307 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

LED Driver 7 Click

Rating:

5

Author: MIKROE

Last Updated: 2020-01-09

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: LED Drivers

Downloaded: 2674 times

Not followed.

License: MIT license  

LED Driver 7 click is a Click boardâ„¢ equipped with the LTC3490, single cell 350mA LED driver from Linear Technology.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "LED Driver 7 Click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "LED Driver 7 Click" changes.

Do you want to report abuse regarding "LED Driver 7 Click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Led Driver 7 click

Led Driver 7 click

Native view of the Led Driver 7 click board.

View full image
Led Driver 7 click

Led Driver 7 click

Front and back view of the Led Driver 7 click board.

View full image

Library Description

Library provides full control of the LED's illumination. User can change the LED's brightness and apply "One Time Programming" with write function, or check the wiper and OTB bits with read function.

Key functions:

  • void leddriver7_write ( uint8_t cmd_byte, uint8_t pos ); - Function sets command byte and potentiometer position.
  • uint8_t leddriver7_read ( ); - Function reads single byte of data from output register.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2Ca nd LOG modules.
  • Application Initialization - Initalizes I2C driver and writes an initial log.
  • Application Task - This example demonstrates the use of LED Driver 7 Click board, by cycling wiper positions of AD5171 Digital Potentiometer.
void application_task ( )
{
    for ( n_pos = 12; n_pos < pos_num; n_pos++ )
    {
        leddriver7_write ( LEDDRIVER7_NORM_OP_MODE, n_pos );
        ByteToStr( n_pos, test_log );
        mikrobus_logWrite( "Position :", _LOG_TEXT );
        mikrobus_logWrite( test_log, _LOG_LINE );
        Delay_ms( 500 );
    }
}

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • Conversions

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

MCP2542 click

1

MCP2542 click carries a Microchip CAN FD Transceiver compliant with CAN 2.0 and CAN with Flexible Data Rate (CAN FD).

[Learn More]

Expand 12 click

0

Expand 12 Click is a compact add-on board that contains a multi-port I/O expander. This board features the MAX7300, a general-purpose I/O expander providing remote I/O expansion for most MCU’s families from Maxim Integrated, now part of Analog Devices. The MAX7300 comes in a 28-port configuration and allows easy addition of I/O through a standard I2C serial interface. Each port is user-configurable to either a logic input or logic output, capable of sinking 10mA and sourcing 4.5mA.

[Learn More]

ADC 18 click

0

ADC 18 Click is a compact add-on board that contains a high-performance data converter. This board features the MAX22005, an SPI-configurable twelve-channel 24-bit analog-to-digital converter (ADC) from Analog Devices.

[Learn More]