jung6717 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

http://arduino.cc/en/Tutorial/Calibration code wrong #215

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This has been fixed.

Original comment by tom.i...@gmail.com on 28 Oct 2010 at 1:55