Skip to content

Commit

Permalink
fix start function
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexi committed Feb 20, 2022
1 parent c5b7a5a commit 3213611
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buzzer_music.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ def stop(self):
def start(self):
self.beat = -1
self.timer = 0
for pwm in self.pwms:
pwm.deinit()
self.pwms = []
for pin in self.pins:
self.pwms.append(PWM(pin))
Expand Down

0 comments on commit 3213611

Please sign in to comment.