1 // sketch 03_02_interrupt_flash
4 volatile boolean flashFast = false;
8 pinMode(ledPin, OUTPUT);
9 attachInterrupt(0, stuffHapenned, FALLING);
15 if (flashFast) period = 100;
16 digitalWrite(ledPin, HIGH);
18 digitalWrite(ledPin, LOW);
24 flashFast = ! flashFast;