Class: Led

Led

new Led(options)

Name Type Description
options Object

configuration options

Name Type Default Description
io Object

io object created with new IO()

pin Integer 13 optional

pin number

bright bright 0 optional

led brightness Main LED constructor

Methods

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