Skip to content

Commit

Permalink
Merge pull request #824 from damosurfer/patch-1
Browse files Browse the repository at this point in the history
Update PWM example
  • Loading branch information
bennuttall committed Jan 6, 2020
2 parents 7fd8819 + 9c7a19a commit 295b835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/migrating_from_rpigpio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ In GPIO Zero::

led = PWMLED(2)

for b in range(100):
led.value = b / 100
for b in range(101):
led.value = b / 100.0
sleep(0.01)

:class:`PWMLED` has a :meth:`~PWMLED.blink` method which can be used the same
Expand Down

0 comments on commit 295b835

Please sign in to comment.