Skip to content

Commit c1d6af8

Browse files
authored
Fixed mistake
You need to call pinMode() before calling analogWrite();
1 parent 1e29ea8 commit c1d6af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Functions/Analog IO/analogWrite.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Writes an analog value (http://arduino.cc/en/Tutorial/PWM[PWM wave]) to a pin. C
3636

3737
[%hardbreaks]
3838

39-
You do not need to call `pinMode()` to set the pin as an output before calling `analogWrite()`.
39+
You do need to call `pinMode()` to set the pin as an output before calling `analogWrite()`.
4040
The `analogWrite` function has nothing to do with the analog pins or the `analogRead` function.
4141
[%hardbreaks]
4242

0 commit comments

Comments
 (0)