Skip to content

Commit 5a74f4c

Browse files
authored
Merge pull request #717 from per1234/nano-pwm-pins
Document PWM pins of Nano Every/33 IoT/BLE/BLE Sense
2 parents 3c6bc40 + a6d6081 commit 5a74f4c

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

Language/Functions/Analog IO/analogWrite.adoc

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@ subCategories: [ "Analog I/O" ]
1919
=== Description
2020
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"]
22-
|====================================================================================================
23-
| Board | PWM Pins | PWM Frequency
24-
| Uno, Nano, Mini | 3, 5, 6, 9, 10, 11 | 490 Hz (pins 5 and 6: 980 Hz)
25-
| Mega | 2 - 13, 44 - 46 | 490 Hz (pins 4 and 13: 980 Hz)
26-
| Leonardo, Micro, Yún | 3, 5, 6, 9, 10, 11, 13 | 490 Hz (pins 3 and 11: 980 Hz)
27-
| Uno WiFi Rev.2 | 3, 5, 6, 9, 10 | 976 Hz
28-
| MKR boards * | 0 - 8, 10, A3 (18), A4 (19) | 732 Hz
29-
| MKR1000 WiFi * | 0 - 8, 10, 11, A3 (18), A4 (19) | 732 Hz
30-
| Zero * | 3 - 13, A0 (14), A1 (15) | 732 Hz
31-
| Due ** | 2-13 | 1000 Hz
32-
| 101 | 3, 5, 6, 9 | pins 3 and 9: 490 Hz, pins 5 and 6: 980 Hz
33-
|====================================================================================================
34-
{empty}* In addition to PWM capabilities on the pins noted above, the MKR and Zero boards have true analog output when using `analogWrite()` on the `DAC0` (`A0`) pin. +
22+
|========================================================================================================
23+
| Board | PWM Pins | PWM Frequency
24+
| Uno, Nano, Mini | 3, 5, 6, 9, 10, 11 | 490 Hz (pins 5 and 6: 980 Hz)
25+
| Mega | 2 - 13, 44 - 46 | 490 Hz (pins 4 and 13: 980 Hz)
26+
| Leonardo, Micro, Yún | 3, 5, 6, 9, 10, 11, 13 | 490 Hz (pins 3 and 11: 980 Hz)
27+
| Uno WiFi Rev2, Nano Every | 3, 5, 6, 9, 10 | 976 Hz
28+
| MKR boards * | 0 - 8, 10, A3, A4 | 732 Hz
29+
| MKR1000 WiFi * | 0 - 8, 10, 11, A3, A4 | 732 Hz
30+
| Zero * | 3 - 13, A0, A1 | 732 Hz
31+
| Nano 33 IoT * | 2, 3, 5, 6, 9 - 12, A2, A3, A5 | 732 Hz
32+
| Nano 33 BLE/BLE Sense | 1 - 13, A0 - A7 | 500 Hz
33+
| Due ** | 2-13 | 1000 Hz
34+
| 101 | 3, 5, 6, 9 | pins 3 and 9: 490 Hz, pins 5 and 6: 980 Hz
35+
|========================================================================================================
36+
{empty}* In addition to PWM capabilities on the pins noted above, the MKR, Nano 33 IoT, and Zero boards have true analog output when using `analogWrite()` on the `DAC0` (`A0`) pin. +
3537
{empty}** In addition to PWM capabilities on the pins noted above, the Due has true analog output when using `analogWrite()` on pins `DAC0` and `DAC1`.
3638

3739
[%hardbreaks]

0 commit comments

Comments
 (0)