mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Updating analog input pin number in Calibration example to match diagram.
This commit is contained in:
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// These constants won't change:
|
// 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
|
const int ledPin = 9; // pin that the LED is attached to
|
||||||
|
|
||||||
// variables:
|
// variables:
|
||||||
@ -72,4 +72,4 @@ void loop() {
|
|||||||
|
|
||||||
// fade the LED using the calibrated value:
|
// fade the LED using the calibrated value:
|
||||||
analogWrite(ledPin, sensorValue);
|
analogWrite(ledPin, sensorValue);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user