Updating analog input pin number in Calibration example to match diagram.

This commit is contained in:
David A. Mellis 2010-07-05 15:37:55 +00:00
parent 31601ffe77
commit 9334944189
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
*/
// These constants won't change:
const int sensorPin = 2; // pin that the sensor is attached to
const int sensorPin = 0; // pin that the sensor is attached to
const int ledPin = 9; // pin that the LED is attached to
// variables:
@ -72,4 +72,4 @@ void loop() {
// fade the LED using the calibrated value:
analogWrite(ledPin, sensorValue);
}
}