new Led(options)
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
configuration options
|
Methods
-
staticLed.blink(interval){function}
-
Led blink
Name Type Description interval
Integer time interval
-
staticLed.brightLevel(val){function}
-
Set Led brightness level
Name Type Description val
Integer Bright less level [0, 15]
-
staticLed.fade(interval){function}
-
Led dime out
Name Type Description interval
Integer time interval
-
staticLed.off(){function}
-
Turn off Led
-
staticLed.on(){function}
-
Turn on Led