this post was submitted on 08 May 2024
9 points (90.9% liked)

Python

6157 readers
33 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

October 2023

November 2023

PastJuly 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (1 children)

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!

[–] [email protected] 2 points 3 months ago

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