Playing a wav sample from an SD card when a button is pressed

So, where is the speaker connected?

And you probably need to include that line of code (modified) so TRMpcm "knows" where to send the sound. :wink: