//Description :
//In this project, the flashing LED program is written by the timer.
#include <TimerOne.h> //Timer Library
const int LED=13;
void setup() {
pinMode(LED, OUTPUT);
//The accuracy of the timer is 1 microsecond.
//We want a break after 1 second.
Timer1.initialize(1000000);
Timer1.attachInterrupt(mm);//In this command, we attach Timer1 to mm's subroutine.
//mm is an arbitrary name for the subroutine.
}
void loop() {
}
void mm(){
digitalWrite(LED,!digitalRead(LED));
}