Skip to content

Commit d6e6c2f

Browse files
committed
update documentation accordingly
1 parent 4db7a30 commit d6e6c2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/reference.rst

+3
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ PWM range may be changed by calling ``analogWriteRange(new_range)`` or
109109
``analogWriteResolution(bits)``. ``new_range`` may be from 15...65535
110110
or ``bits`` may be from 4...16.
111111

112+
The function ``analogWriteMode(pin, value, openDrain)`` allows to sets
113+
the pin mode to ``OUTPUT_OPEN_DRAIN`` instead of ``OUTPUT``.
114+
112115
**NOTE:** The default ``analogWrite`` range was 1023 in releases before
113116
3.0, but this lead to incompatibility with external libraries which
114117
depended on the Arduino core default of 256. Existing applications which

0 commit comments

Comments
 (0)