From 2a01a78f395a6bcfee8e9cb1958c69916dff5bbb Mon Sep 17 00:00:00 2001 From: Dylan Herrada <33632497+dherrada@users.noreply.github.com> Date: Wed, 27 Jan 2021 19:04:54 -0500 Subject: [PATCH] Moved from pulseio.PWMOut to pwmio.PWMOut --- adafruit_rtttl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adafruit_rtttl.py b/adafruit_rtttl.py index 54833bd..c128f18 100644 --- a/adafruit_rtttl.py +++ b/adafruit_rtttl.py @@ -16,7 +16,7 @@ import sys import time -import pulseio +import pwmio AUDIOIO_AVAILABLE = False try: @@ -112,7 +112,7 @@ def _get_wave(tune, octave): # pylint: disable-msg=too-many-arguments def _play_to_pin(tune, base_tone, min_freq, duration, octave, tempo): """Using the prepared input send the notes to the pin""" - pwm = isinstance(base_tone, pulseio.PWMOut) + pwm = isinstance(base_tone, pwmio.PWMOut) for note in tune.split(","): piano_note, note_duration = _parse_note(note, duration, octave) if piano_note in PIANO: @@ -179,7 +179,7 @@ def play(pin, rtttl, octave=None, duration=None, tempo=None): # Fall back to PWM if not base_tone: - base_tone = pulseio.PWMOut(pin, duty_cycle=0, variable_frequency=True) + base_tone = pwmio.PWMOut(pin, duty_cycle=0, variable_frequency=True) _play_to_pin(tune, base_tone, min_freq, duration, octave, tempo)