new Led(pin)
led.js, line 10
LED module.
Name | Type | Description |
---|---|---|
pin |
Number | The pin number. |
Methods
-
blink(interval)
led.js, line 40 -
Blink the LED.
Name Type Description interval
Number The interval of blinking the LED. -
off()
led.js, line 31 -
Light off the LED.
-
on()
led.js, line 23 -
Light on the LED.
-
stopBlink()
led.js, line 52 -
Stop blinking the LED.