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.

Class

LED

Name

blink()

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 Blink this led a number of times, with the duration of time each blink.
Syntax
blink(time, times)
Parameters
time The time each blink will take.
times The number of blinks.
Returns None
Usage Application
Updated on July 07, 2011 11:10:33pm PDT

Creative Commons License