-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Description
Code used
def passive_buzzer_play_song_no_timing():
'''Test for song on passive buzzer on GP15'''
from picozero import Speaker
from time import sleep
passive_buzzer = Speaker(16)
passive_buzzer.play(['c5',
'd4',
'e3',
'c5',
'd4',
'e3',
'c5'])
Expected result
Plays the notes with default timing
Actual result
Plays the first note and errors
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 163, in passive_buzzer_play_song_no_timing
File "picozero.py", line 1025, in play
File "picozero.py", line 1007, in _pitch
File "picozero.py", line 172, in _start_change
File "picozero.py", line 40, in __init__
File "picozero.py", line 50, in _set_value
TypeError: can't convert str to float
(I may be reading the library incorrectly though)
Metadata
Metadata
Assignees
Labels
No labels