Class: Led

Led

Class representing a LED.

Constructor

new Led(pin, blinkingTime)

Parameters:
Name Type Description
pin Pin The pin associated with the LED
blinkingTime int Milliseconds between on/off operations
Author:
  • Loris Tissino (http://loris.tissino.it)
License:
  • MIT
Source:

Methods

clearInterval()

Clears the interval associated to the LED.
Source:

switchOff()

Switches the LED off.
Source:

switchOn()

Switches the LED on.
Source:

toggle()

Toggles the LED.
Source: