new RgbLed(pins)
rgb-led.js, line 10
RGB LED module.
Name | Type | Description |
---|---|---|
pins |
Array | The pin numbers. |
Methods
-
blink(color, interval)
rgb-led.js, line 62 -
Blink the RGB LED.
Name Type Description color
String optional Color code or name. interval
Number optional The interval of blinking the RGB LED. -
off()
rgb-led.js, line 52 -
Turn off the RGB LED.
-
on(color)
rgb-led.js, line 37 -
Turn on the RGB LED.
Name Type Description color
String optional Color code or name, e.g. #28ABE3. -
stopBlink()
rgb-led.js, line 78 -
Stop blinking the RGB LED.