Skip to content

Commit 27c4cbd

Browse files
authored
Update analogWrite.adoc
arduino#979 corecting the analog pin example.
1 parent f2fd284 commit 27c4cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Functions/Analog IO/analogWrite.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Sets the output to the LED proportional to the value read from the potentiometer
8383
[source,arduino]
8484
----
8585
int ledPin = 9; // LED connected to digital pin 9
86-
int analogPin = 3; // potentiometer connected to analog pin 3
86+
int analogPin = A3; // potentiometer connected to analog pin 3
8787
int val = 0; // variable to store the read value
8888
8989
void setup() {

0 commit comments

Comments
 (0)