new FourLeds()
Extends
Methods
-
b(value)
-
Set led blue value
Parameters:
Name Type Description value
Number 0 ~ 255
- Inherited From:
-
blue()
-
Light on let with blue color
- Inherited From:
-
g(value)
-
Set led green value
Parameters:
Name Type Description value
Number 0 ~ 255
- Inherited From:
-
green()
-
Light on let with green color
- Inherited From:
-
position(position)
-
Set led position
Parameters:
Name Type Description position
Number - Inherited From:
-
r(value)
-
Set led red value
Parameters:
Name Type Description value
Number 0 ~ 255
- Inherited From:
-
red()
-
Light on let with red color
- Inherited From:
-
rgb(hex)
-
Set led color with hex-color
Parameters:
Name Type Default Description hex
String #ff0000 hex color like '#ff0088'
- Inherited From:
-
run()
-
run led with colors set before
- Inherited From:
-
turnOff()
-
Turn off led
- Inherited From:
-
turnOffAll()
-
Turn off all the leds
- Inherited From:
-
turnOn()
-
Turn on led
- Inherited From:
-
turnOnAll()
-
Turn on all the leds
- Inherited From:
-
white()
-
Light on let with white color
- Inherited From: