Search wiring.org.co:

Libraries \ LED

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name |

### LED

Examples |
    #include <LED.h>

    //create a LED object at digital pin with led onboard
    LED led = LED(WLED);

    void setup(){/*no setup required*/}

    void loop()
    {
      led.blink(2000);//on a second, off a second
    }
Description | Set the pinMode of the LED.
Syntax |
    LED(ledPin)
Methods |

getState() |
on() |
off() |
toggle() |
blink() |
setValue() |
fadeIn() |
fadeOut |

Parameters |

ledPin | The pin connected to this LED

Returns | None
Usage | Application

Updated on July 07, 2011 11:10:32pm PDT