Skip to content

Commit 0c4c633

Browse files
committed
Formatted per pre-commit
1 parent a929466 commit 0c4c633

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

adafruit_rtttl.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,14 @@ def _get_wave(tune: str, octave: int) -> Tuple[sine.sine_wave, float]:
116116

117117

118118
# pylint: disable-msg=too-many-arguments
119-
def _play_to_pin(tune: str, base_tone: Union[pwmio.PWMOut, AudioOut], min_freq: float, duration: int, octave: int, tempo: int) -> None:
119+
def _play_to_pin(
120+
tune: str,
121+
base_tone: Union[pwmio.PWMOut, AudioOut],
122+
min_freq: float,
123+
duration: int,
124+
octave: int,
125+
tempo: int,
126+
) -> None:
120127
"""Using the prepared input send the notes to the pin"""
121128
pwm = isinstance(base_tone, pwmio.PWMOut)
122129
for note in tune.split(","):
@@ -145,7 +152,13 @@ def _play_to_pin(tune: str, base_tone: Union[pwmio.PWMOut, AudioOut], min_freq:
145152

146153

147154
# pylint: disable-msg=too-many-arguments
148-
def play(pin, rtttl: str, octave: int = Optional[None], duration: Optional[int] = None, tempo: Optional[int] = None) -> None:
155+
def play(
156+
pin,
157+
rtttl: str,
158+
octave: int = Optional[None],
159+
duration: Optional[int] = None,
160+
tempo: Optional[int] = None,
161+
) -> None:
149162
"""Play notes to a digialio pin using ring tone text transfer language (rtttl).
150163
:param ~digitalio.DigitalInOut pin: the speaker pin
151164
:param str rtttl: string containing rtttl

0 commit comments

Comments
 (0)