0

Using button combination to trigger action

I'm wondering is there a way to have button combinations trigger an event.  

For example, say GPIO buttons #1 and #2 are each assigned to play back a sound file.  If I hold down  buttons #1 and #2 at the same time, can I get the Brighsign to play back a third sound file.

#1 = sound1.mp3 

#2 = sound2.mp3

#1 + #2 = sound3.mp3

 

If not, has anyone used a work-around, say using an Ardunio/micro controller to connected to the GPIO inputs?

 

thanks in advance

1 comment

  • 0
    Avatar
    Lyndon

     

    Try this project file. It was created in brightauthor 4.3.0.16.

    https://www.brightsignnetwork.com/download/Videos/GPIO-ZoneMessage-combinebuttons.bpf

     

    It uses zone messages to play the audio files. In the background zone it listens for gpio. 

     

    if 1 is pressed it goes to a state and waits .5 seconds to see if 2 is pressed. If 2 isn't pressed within half a second, it sends the message 1 to the main zone to play audio 1.

     

    If 2 is pressed it sends 2 to play the second audio file.

     

    If 1 is pressed, and 2 is pressed within half a second, it sends 3 to paly the 3rd audio file. 

     

     

     

    In the back

     

     

Please sign in to leave a comment.