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