TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137088 times)
  2. FAT32 Library (70232 times)
  3. Network Ethernet Library (56098 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42052 times)
  6. FT800 Library (41383 times)
  7. GSM click (29110 times)
  8. mikroSDK (26559 times)
  9. PID Library (26489 times)
  10. microSD click (25486 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 3 Click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-14

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: LED Drivers

Downloaded: 4726 times

Not followed.

License: MIT license  

LED Driver 3 click is an RGB LED driver, capable of driving RGB LEDs with up to 30mA per segment, via the digital I2C interface. It comes with an RGB LED onboard, and is capable of displaying a palette of 32768 colors.

No Abuse Reported

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

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

Do you want to report abuse regarding "LED Driver 3 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 3 click

LED Driver 3 click

Native view of the LED Driver 3 click board.

View full image
LED Driver 3 click

LED Driver 3 click

Front and back view of the LED Driver 3 click board.

View full image

Library Description

The library carries functions necessary to have complete control over all functionalities of the Click board.

Key functions:

  • void leddriver3_setIntensity(uint8_t intensity) - Set intensity of LED light.
  • void leddriver3_setRGB_Color(uint8_t red, uint8_t green, uint8_t blue) - Set color in RGB format.
  • void leddriver3_setColor(uint32_t color) - Set color using one of the predefined values.

Examples Description

The demo application is composed of three sections:

  • System Initialization - Initializes I2C module used for LED Driver 3 click.
  • Application Initialization - Driver initialization.
  • Application Task - (code snippet) - Sequentially changes intensity and color of the LED light with delays of one second between each operation.
void applicationTask()
{
 leddriver3_setIntensity(_LEDDRIVER3_INCREMENT | _LEDDRIVER3_INTENSITY_8);
 leddriver3_setTimer(_LEDDRIVER3_TIMER_8ms | _LEDDRIVER3_TIMER_16ms); // 24 ms
 leddriver3_setColor(_LEDDRIVER3_COLOR_RED);
 Delay_1sec();

 leddriver3_setIntensity(_LEDDRIVER3_CONSTANT | _LEDDRIVER3_INTENSITY_16);
 leddriver3_setColor(_LEDDRIVER3_COLOR_YELLOW);
 Delay_1sec();
 leddriver3_setColor(_LEDDRIVER3_COLOR_BLUE);
 Delay_1sec();
 leddriver3_setRGB_Color(0x40, 0x7F, 0x80);
 Delay_1sec();
}

Other mikroE Libraries used in the example:

  • I2C

Additional notes and information

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.

ALSO FROM THIS AUTHOR

Ambient 5 click

5

Ambient 5 click can sense the intensity of the ambient light, providing measurement data in a digital format, over the I2C interface. It utilizes the VEML6030, a miniature ambient light sensor (ALS) which occupies only 2x2 mm of space.

[Learn More]

CAN FD 2 click

5

CAN FD 2 Click is a Click boardâ„¢ based on TLE9252V CAN network transceiver, it drives the signals to the bus and protects the microcontroller from interference generated within the network.

[Learn More]

GainAMP click

0

GainAMP click carries the LTC6912 dual channel, low noise, digitally programmable gain amplifier (PGA).

[Learn More]