Ah nice, you’re GPIO to generate tones with PWM. Very cool!
Ah nice, you’re GPIO to generate tones with PWM. Very cool!
Great to hear you got it sorted! May I ask out of curiosity which library you are using to play sounds?
It should be possible, but the answer is going to depend on your implementation, what libraries you are using, and so on.
For example, if the play sound action is synchronous, then maybe you could start it up in another thread, and interrupt that thread if you want to cancel the sound.
If it’s asynchronous, maybe you need to retain a reference to the sound object and then invoke a stop() call when the other button is pressed.
Ah that’s great. It wasn’t an option when I had to get it sorted but that was a few years ago. The self-service options in the app are excellent for basic config and troubleshooting.
I have AussieBB and had to give them a call at one point to allow inbound traffic so I could expose my self-hosted server. They flicked a switch for my account and then everything came good.
If you give them a ring and explain what you’re trying to do it should get sorted out very quickly. Their customer service staff are very knowledgeable and friendly - they’re the best RSP I’ve ever had.
Don’t forget the 300-comment-long “+1” feature request chains