From 299d82982f74906cade79b52baa5b0103a1cf9c7 Mon Sep 17 00:00:00 2001 From: Dylan Herrada <33632497+dherrada@users.noreply.github.com> Date: Tue, 2 Feb 2021 14:28:43 -0500 Subject: [PATCH] Moved from pulseio.PWMOut to pwmio.PWMOut --- simpleio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simpleio.py b/simpleio.py index 91050bf..c284152 100644 --- a/simpleio.py +++ b/simpleio.py @@ -31,7 +31,7 @@ import sys import array import digitalio -import pulseio +import pwmio try: # RawSample was moved in CircuitPython 5.x. @@ -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