0

Stop file playback on button release

Hi!

I'm setting up a simple GPIO input to trigger a sound file, micro switch connected to GPIO 0. It's set to "Trigger Event On Button: Up" to play back a file whenever someone lifts an object. But when they set the object back down and the switch returns to "Down" the file should stop playing.

Can't seem to figure out how to stop file playback with a new click of the button. Can any one help?

1 comment

  • 0
    Avatar
    Bright Scripters

    You could try and transition to an Event Handler that is set for "Stop Playback" in its state properties.

    Alternatively, you could transition to an audio file containing silence.

Please sign in to leave a comment.