On the tutorial page http://arduino.cc/en/Tutorial/Calibration there are
two bugs:
a) In the code:
const int sensorPin = 2; should read:
const int sensorPin = 0; in order to match the displayed breadboard and
circuit images
And in the code:
void setup() {
// turn on LED to signal the start of the calibration period:
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
... here the ledPin should also be set to pinMode(ledPin, OUTPUT);
...
}
Original issue reported on code.google.com by justjoheinz on 3 Mar 2010 at 5:34
Original issue reported on code.google.com by
justjoheinz
on 3 Mar 2010 at 5:34