Constructor
new Led(pin, blinkingTime)
Parameters:
Name | Type | Description |
---|---|---|
pin |
Pin | The pin associated with the LED |
blinkingTime |
int | Milliseconds between on/off operations |
- License:
- MIT
- Source:
Methods
clearInterval()
Clears the interval associated to the LED.
switchOff()
Switches the LED off.
switchOn()
Switches the LED on.
toggle()
Toggles the LED.