mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
Removing delay() in analogRead(). It seems we don't need it. Not sure what changed from before when it seemed necessary to prevent bugs.
This commit is contained in:
parent
6fa233b9ee
commit
2377bb9ddd
@ -171,7 +171,7 @@ int analogRead(int pin)
|
|||||||
ADMUX = (ADMUX & (unsigned int) 0xf0) | (ch & (unsigned int) 0x0f);
|
ADMUX = (ADMUX & (unsigned int) 0xf0) | (ch & (unsigned int) 0x0f);
|
||||||
|
|
||||||
// without a delay, we seem to read from the wrong channel
|
// without a delay, we seem to read from the wrong channel
|
||||||
delay(1);
|
//delay(1);
|
||||||
|
|
||||||
// start the conversion
|
// start the conversion
|
||||||
sbi(ADCSRA, ADSC);
|
sbi(ADCSRA, ADSC);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user