Finalize merger.

This commit is contained in:
Stephen Olesen 2015-07-09 14:57:22 -06:00
parent 6d8813f200
commit 52ac3def7d
1 changed files with 6 additions and 0 deletions

View File

@ -34,7 +34,13 @@ ISR(TIMER2_OVF_vect) {
}
#else // Use the ADC timer instead
ISR(ADC_vect) {
static unsigned char tcnt = 0;
TIFR1 = _BV(ICF1); // Clear the timer flag
if(++tcnt == 4) {
digitalWrite(2, HIGH);
tcnt = 0;
}
dds.clockTick();
digitalWrite(2, LOW);
}
#endif