0

Switch read on power up?



Hello,
I am wondering if it is possible in the script to read the status of a switch on power up (not a change of state)? What I wish to do is have an external switch determine if videos with or without close captioning are played - This only needs to be determined at startup. I was also thinking of using the DIP switches on the back to put the unit into a different mode upon startup (ie: a debug mode for the video system, a debug mode for the audio system, etc.).
Regards,
Jeff

3 comments

  • 0
    Avatar
    RokuLyndon


    You mean a GPIO switch? There is a command that checks if a button is currently  pressed. Are you using a custom script?
  • 0
    Avatar
    jcsveth


    Well... A gpio switch to be sure - but I also thought it would be nice to read the state of the DIP switches on the back of the HD2000 upon power-up.

    I am  using a custom script but if we can do this in the csv or playlist, I would be interested in that also.

    Regards,

    Jeff
  • 0
    Avatar
    jcsveth


    Oh...  I guess I should read a little instead of just looking at the examples.

    IsInputActive() and GetWholeState() should fit the bill just fine.

    Sorry.

    <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
Please sign in to leave a comment.