Skip to content

Commit

Permalink
update documentation accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
klugem committed Jan 26, 2021
1 parent 4db7a30 commit d6e6c2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ PWM range may be changed by calling ``analogWriteRange(new_range)`` or
``analogWriteResolution(bits)``. ``new_range`` may be from 15...65535
or ``bits`` may be from 4...16.

The function ``analogWriteMode(pin, value, openDrain)`` allows to sets
the pin mode to ``OUTPUT_OPEN_DRAIN`` instead of ``OUTPUT``.

**NOTE:** The default ``analogWrite`` range was 1023 in releases before
3.0, but this lead to incompatibility with external libraries which
depended on the Arduino core default of 256. Existing applications which
Expand Down

0 comments on commit d6e6c2f

Please sign in to comment.