Skip to content

Commit

Permalink
Merge pull request #825 from lurch/patch-1
Browse files Browse the repository at this point in the history
Update RPi.GPIO PWM example
  • Loading branch information
bennuttall committed Jan 6, 2020
2 parents 295b835 + 3cf495a commit 92d0c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migrating_from_rpigpio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ In `RPi.GPIO`_::
pwm = GPIO.PWM(2, 100)
pwm.start(0)

for dc in range(100):
for dc in range(101):
pwm.changeDutyCycle(dc)
sleep(0.01)

Expand Down

0 comments on commit 92d0c2e

Please sign in to comment.