new BaseRgbLed(port, slot)
It is a base Class of RgbLed
Parameters:
Name | Type | Description |
---|---|---|
port |
Number | led port |
slot |
Number | led slot |
Extends
- Electronic
Methods
-
b(value)
-
Set led blue value
Parameters:
Name Type Description value
Number 0 ~ 255
-
blue()
-
Light on let with blue color
-
g(value)
-
Set led green value
Parameters:
Name Type Description value
Number 0 ~ 255
-
green()
-
Light on let with green color
-
position(position)
-
Set led position
Parameters:
Name Type Description position
Number -
r(value)
-
Set led red value
Parameters:
Name Type Description value
Number 0 ~ 255
-
red()
-
Light on let with red color
-
rgb(hex)
-
Set led color with hex-color
Parameters:
Name Type Default Description hex
String #ff0000 hex color like '#ff0088'
-
run()
-
run led with colors set before
-
turnOff()
-
Turn off led
-
turnOffAll()
-
Turn off all the leds
-
turnOn()
-
Turn on led
-
turnOnAll()
-
Turn on all the leds
-
white()
-
Light on let with white color