Finalize merger.
This commit is contained in:
parent
6d8813f200
commit
52ac3def7d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue