Skip to content

Commit db3077a

Browse files
authored
Merge pull request #59 from adafruit/dherrada-patch-1
Moved from pulseio.PWMOut to pwmio.PWMOut
2 parents 7e56213 + 299d829 commit db3077a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simpleio.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import sys
3232
import array
3333
import digitalio
34-
import pulseio
34+
import pwmio
3535

3636
try:
3737
# RawSample was moved in CircuitPython 5.x.
@@ -65,7 +65,7 @@ def tone(pin, frequency, duration=1, length=100):
6565
try:
6666
# pin with PWM
6767
# pylint: disable=no-member
68-
with pulseio.PWMOut(
68+
with pwmio.PWMOut(
6969
pin, frequency=int(frequency), variable_frequency=False
7070
) as pwm:
7171
pwm.duty_cycle = 0x8000

0 commit comments

Comments
 (0)