state Should be an integer value of 1 or 0.
Sets the state of the led on or off.
Returns true if the LED is on, false if the led is off.
Turns the LED on.
Turns the LED off.
Toggles the state of the LED. (If the LED is on, then it will be turned off, if it is off, then it will be turned on.)
Several examples are available to show how to use this driver.
LED with Firmata Example
Code for this example can be found in the
zorg-firmata repo on GitHub.
Connect the led between pin 13.