Fixed DDS.cpp to reference ADC channel 2 instead of old channel 0.
This commit is contained in:
parent
39b543877b
commit
164888fd49
|
@ -54,7 +54,7 @@ void DDS::start() {
|
|||
#endif
|
||||
|
||||
// Configure the ADC here to automatically run and be triggered off Timer1
|
||||
ADMUX = _BV(REFS0) | _BV(ADLAR) | 0; // Channel 0, shift result left (ADCH used)
|
||||
ADMUX = _BV(REFS0) | _BV(ADLAR) | 2; // Channel 2, shift result left (ADCH used)
|
||||
DDRC &= ~_BV(0);
|
||||
PORTC &= ~_BV(0);
|
||||
DIDR0 |= _BV(0);
|
||||
|
|
Loading…
Reference in New Issue