I have a Keybow MINI hooked up to a Raspberry Pi Zero W, and I’m using Python to respond to events. I have one button that kicks off playing a song on a passive buzzer, and I’m wondering if there’s a way to have a button press stop the song before it completes.

  • @Vector
    link
    English
    18 months ago

    Great to hear you got it sorted! May I ask out of curiosity which library you are using to play sounds?

    • @[email protected]OP
      link
      fedilink
      English
      1
      edit-2
      8 months ago

      I converted this into python; you can see it here.

      Edit: Err, you will be able to see it there once I get to my laptop and make it public.

      Edit: Public now!

      • @Vector
        link
        English
        28 months ago

        Ah nice, you’re GPIO to generate tones with PWM. Very cool!