Skip to content

Commit cd7bcc7

Browse files
committed
Use correct term for the waveform generated by analogWrite()
A true square wave is only created by a PWM duty cycle of 50%. At any other duty cycle setting (including 50%), analogWrite() will create a rectangular wave.
1 parent f731a3b commit cd7bcc7

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
@@ -17,7 +17,7 @@ subCategories: [ "Analog I/O" ]
1717

1818
[float]
1919
=== Description
20-
Writes an analog value (http://arduino.cc/en/Tutorial/PWM[PWM wave]) to a pin. Can be used to light a LED at varying brightnesses or drive a motor at various speeds. After a call to `analogWrite()`, the pin will generate a steady square wave of the specified duty cycle until the next call to `analogWrite()` (or a call to `digitalRead()` or `digitalWrite()`) on the same pin.
20+
Writes an analog value (http://arduino.cc/en/Tutorial/PWM[PWM wave]) to a pin. Can be used to light a LED at varying brightnesses or drive a motor at various speeds. After a call to `analogWrite()`, the pin will generate a steady rectangular wave of the specified duty cycle until the next call to `analogWrite()` (or a call to `digitalRead()` or `digitalWrite()`) on the same pin.
2121
[options="header"]
2222
|====================================================================================================
2323
| Board | PWM Pins | PWM Frequency

0 commit comments

Comments
 (0)