Skip to content

Commit

Permalink
Merge pull request #59 from adafruit/dherrada-patch-1
Browse files Browse the repository at this point in the history
Moved from pulseio.PWMOut to pwmio.PWMOut
  • Loading branch information
tannewt authored Feb 4, 2021
2 parents 7e56213 + 299d829 commit db3077a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simpleio.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import sys
import array
import digitalio
import pulseio
import pwmio

try:
# RawSample was moved in CircuitPython 5.x.
Expand Down Expand Up @@ -65,7 +65,7 @@ def tone(pin, frequency, duration=1, length=100):
try:
# pin with PWM
# pylint: disable=no-member
with pulseio.PWMOut(
with pwmio.PWMOut(
pin, frequency=int(frequency), variable_frequency=False
) as pwm:
pwm.duty_cycle = 0x8000
Expand Down

0 comments on commit db3077a

Please sign in to comment.