// put your main code here, to run repeatedly:
}
-// Timer1 Interrupt Service Routine (ISR)
-// Toggle pin 13 (LED) every 1s
-ISR(TIMER1_COMPA_vect) {
- /*
- * Generates pulse wave of frequency 1Hz/2 = 0.5Hz
- * Takes two cycles for full wave - toggle high then after 1s toggle low after 1s repeat
- */
+/*
+ Timer1 Interrupt Service Routine (ISR)
+ Toggle pin 13 (LED) every 1s
+ Generates pulse wave of frequency 1Hz/2 = 0.5Hz
+ Takes two cycles for full wave - toggle high then after 1s toggle low after 1s repeat
+*/
+ISR(TIMER1_COMPA_vect) {
if (toggle == 1) {
digitalWrite(13, HIGH);
toggle = 0;