You are on page 1of 7

:

26

26

delay LED

Arduino Uno
2 3

4992319
4992335 ()
4992350

26

Arduini Uno 1

220 1

LED 1

26

LED Arduino Reset

int pin = 2;
volatile int state = HIGH;
void setup()
{
pinMode(pin, OUTPUT);
attachInterrupt(0, blink, CHANGE);
}

26

void loop()
{
digitalWrite(pin, state);
}
void blink()
{
state = !state;
}

&

MsTimer2

Arduino

26

26

http://www.youtube.com/watch?v=CRJUdf5TTQQ
http://arduino.cc/en/Reference/attachInterrupt
http://140.130.1.120/

(2013) Arduino

You might also like