Hey dude! Your are amazing at teaching. I bought a YX5300 on a recommendation from someone for adding a SD card and headphone jack. Do you know how to set that up to read off that card?
@mostly_water2 жыл бұрын
This is a great tutorial! It gets close to what I'm trying to figure out. I have the QT Py you mentioned! I'm trying to set it up so that while a button is pressed, a sound plays on loop and some neopixels flash. When I release the button, everything should stop. I now know I can put the neopixel code right in the audio playback code, which is great- my question is, how would I configure this to play on loop, and only while the button is being held down?
@profgallaugher2 жыл бұрын
If you check out the Physical Computing Google Drive at Gallaugher.com, you'll see the challenge exercises & solutions for last week's class. Look at the code for the Fridge Alarm. While this will loop sound until a button is pressed, there's no reason why you can't test for a button press and while it's held down, continue to call the play sound. In this scenario it'll play through the file, then check the loop, so if you have a long sound file, you might see a delay after lifting your finger before the sound play stops. If that exercise solution isn't help, the definitely check out the Adafruit Discord server. Folks there are super helpful!
@mostly_water2 жыл бұрын
@@profgallaugher that was super helpful, thank you!
@joshuaa.c.newman74302 жыл бұрын
That’s a 3.5mm, aka 1/8” jack, not an RCA.
@profgallaugher2 жыл бұрын
Yes. I stand corrected. Info for anyone looking for specifics. geekmusician.com/rca-vs-3-5mm/