def play_negado(self): # Inicia buzzer #GPIO.setup(self.gpio, GPIO.OUT) buzz = PWM(self.porta, 131) # initial frequency. buzz.start(50) # Start buzzer pin with 50% duty ration time.sleep(0.2) # delay a note for beat * 0.5s buzz.ChangeFrequency(101) # Change the frequency along the song note time.sleep(0.7) # delay a note for beat * 0.5s buzz.stop() # Stop the buzzer super().ligar_porta() # Set buzzer pin to High