wilmouths / RGBLed

An Arduino library to control RGB led
GNU General Public License v3.0
42 stars 20 forks source link

RGBLed Arduino library

This library for Arduino allows you to control RGB led.

Installation

Installing Additional Arduino Libraries

Usage

led.flash(RGBLed::RED, 250, 100); // Light on during 250ms and flash with interval (100ms) // or led.flash(255, 0, 0, 250, 100); // Light on during 250ms and flash with interval (100ms)


+ Fade In or Out
```cpp
led.fadeOut(RGBLed::RED, 5, 100); // Fade out with 5 steps during 100ms
// or
led.fadeOut(255, 0, 0, 5, 100); // Fade out with 5 steps during 100ms

led.fadeIn(RGBLed::RED, 5, 100); // Fade in with 5 steps during 100ms
// or
led.fadeIn(255, 0, 0, 5, 100); // Fade in with 5 steps during 100ms

Colors

You can create your own colors or use the followings colors

  • RED
  • GREEN
  • BLUE
  • MAGENTA
  • CYAN
  • YELLOW
  • WHITE

How use colors ?

RGLed::RED

Contributors

Thank you to all our contributors!