0

GPIO control to the existing default autorun.brs in HD1010



Help, I want to control a playlist in ".bsp", ".csv" or other playlist file with GPIO button. I wonder if someone could help me.
I want to reuse the existing "autorun.brs" (the default file in the SD card of my HD1010) to add gpio control such as pressing button 1 will play the previous media, pressing button2 will play the next media.
Please help me.
Thank you in advance.

5 comments

  • 0
    Avatar
    RokuLyndon


    You can do this currently using an interactive playlist, a .csv file. It won't call a separate autoplay.bsp file, but you can simulate a playlist in the autoplay.csv.



    This is covered in more detail in chapter 4 of the user's guide. IF you need me to send you a specific working example, let me know.
  • 0
    Avatar
    ndrantotiana.rindra


    <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->. Thank you for your help. It is one of the solutions I think for my problem but this solution did not give more options.

    My situation is that you could create playlist (so playlist is dynamic) as you want but clicking at any moment on a specific GPIO button (for example, button No1) will play the previous media not a fixed media, and another GPIO button click will trigger the play of the next media not a fixed media. Is it possible with "autoplay.csv"? If so could you post me a sample please. If not, could you give me a sample of Brightscript code to do that?

    Thank you in advance.
  • 0
    Avatar
    RokuLyndon


    I don't think I understand what you are trying to do. Are you saying you don't want a playlist at all, but just the Brightsign Playing whatever files are on the flash card. And, you can use a gpio button to advance to the next file or go back to the previous file?



    If you have a diagram that captures what you are trying to do, that would be great.
  • 0
    Avatar
    ndrantotiana.rindra


    <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->. Sorry if my explication is so ambiguous <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.

    Let me re-introduce my need <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->:











                  Is this scenario possible? If so, could you give me a way to do that, a script or another ".csv" or ".bsp" file?



                  Sorry if I disturb you. Thank you very much.
                • 0
                  Avatar
                  RokuLyndon


                  Do you want to create these playlists as separate text files on the flash card, and then send a command to play playlist1, or advance to playlist2, for example?



                  You can create playlists within an interactive playlist, it's not separate files, though.



                  Maybe, if we spoke it would be easier. You can email me directly at <!-- e --><a href="mailto:support@brightsign.biz">support@brightsign.biz</a><!-- e -->.
                Please sign in to leave a comment.