Skip to content

Commit

Permalink
Update analogWrite.adoc
Browse files Browse the repository at this point in the history
arduino#979 
corecting the analog pin example.
  • Loading branch information
MaderDash authored Jun 30, 2024
1 parent f2fd284 commit 27c4cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Language/Functions/Analog IO/analogWrite.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Sets the output to the LED proportional to the value read from the potentiometer
[source,arduino]
----
int ledPin = 9; // LED connected to digital pin 9
int analogPin = 3; // potentiometer connected to analog pin 3
int analogPin = A3; // potentiometer connected to analog pin 3
int val = 0; // variable to store the read value
void setup() {
Expand Down

0 comments on commit 27c4cbd

Please sign in to comment.