Roku manual Controlling Gpio Outputs from a CSV File HD2000 only

Page 24

In the example above, the state cars.mpg is in the “elo:110:180:350:400” event column. To track the number of times that the user activates this transition, enter “cars.mpg:counter(TouchToDemoMenu) in place of “cars.mpg”. The value in the registry corresponding to the TouchToDemoMenu key is incremented when the corresponding event is triggered.

To display the contents of the registry from a CSV file, use the reserved state name “DisplayRegistry”. That is, add a row to the table with the word “DisplayRegistry” in the column to the right of the keyword STATE. The remainder of the row is like any other row in the table – it contains other states to transition to when events occur. Elsewhere in the table, add the state DisplayRegistry in the column for the event intended to cause the registry to be displayed.

When the system transitions to this state, playback from the prior state is stopped and the contents of the registry are displayed on the monitor attached to the BrightSign.

To display only a subset of the registry, use the following syntax:

DisplayRegistry-<registry section name>

Controlling GPIO Outputs from a CSV File (HD2000 only)

When using CSV files on the HD2000, it is possible to control the GPIO outputs from a CSV file. GPIO’s can be set by appending a GPIO command to the state specifications in the second column of CSV files. The GPIO’s are set based on the appended command when the state is entered.

The general syntax is:

<state name>:<gpio command>(<gpio_num>;<gpio_num>;gpio_num)

That is, the state name followed by a colon, then the gpio command, then a list of semicolon separated gpio’s inside of parentheses.

Gpio 0 corresponds to the first LED on the button board

The GPIO commands are

gpiosOn – turns on the specified GPIO’s; unspecified GPIO’s are unchanged.

gpiosOff – turns off the specified GPIO’s; unspecified GPIO’s are unchanged.

gpios – turns on the specified GPIO’s; unspecified GPIO’s are turned off.

Examples

Demo_menu.bmp:gpios(1;3;5)

oLED’s 1, 3, and 5 are turned on; the other LED’s are turned off when the demo_menu.bmp state is entered

aq.mpg:gpiosOn(2)

oLED 2 is turned on; other LED’s are unaffected when the aq.mpg state is entered

24

Image 24
Contents BrightSign Users Guide Introduction Brightsign Features Example Brightsign Setups Etting the D ATE/T IME on B Rights IGN HD2000 only Introduction BrightSign Features BrightSign BrightSign HD2000 HD600 Display ResolutionsPower Example BrightSign Setups Examples Try the DemoSoftware Versions BrightSign Documentation Getting Started Get Hardware You NeedMedia Types Supported Dolby Digital AC3 5.1 audio in a video fileAuto Playing a Video upon Power-up Playing Media with BrightSignAuto Playing a Playlist upon Power-up Auto Executing a .CSV File Upon Power-UpAuto Executing a Script Upon Power-Up Page Playlists Getting StartedPlaylist Commands Slideinterval # default is Audiochan # default isDisplayregistry registry section name default is null Lighton # Lightoff #Waitbuttonany Pause #Using Excel to Create Interactive Signs Creating Interactive Displays Keywords ImagemodeFlipelo State Controlling Gpio Outputs from a CSV File HD2000 only Preloading Images State File CSV Examples Page Rollover Regions using State Files CSV Rollover Events Page Example Scheduling Playback HD2000 only Scripts Hello worldRoku Objects Registry HD2000 only Gpio Control PortLearning More and Support Troubleshooting Autoplay & General TroubleshootingGeneral Playback Problems with the BrightSign Autoplay.mpg does not play automaticallyPlaylists Video output is redNo Audio during playback BrightSign and Accessories BrightSign isn’t booting up properly / Random lights litState Files CSV BrightSign Software Update Fails Video Selector switch does not workCompact Flash card is not recognized by the BrightSign USB Mouse is not responding USB Keyboard is not respondingElo Touch Screen coordinates aren’t working properly Appendix Selecting Compact Flash CardsBrightSign Compatibility Device Software Firmware and Upgrading BrightSign Shell Updating from the BrightSign ShellList of Shell Commands Example Shell Commands Playing Files & Changing SettingsUsing SD Cards HD2000 only Testing Compact Flash CardsTesting Scripts, Playlists, and .CSV Testing PlaylistsMult-run Script Limitations Setting the Date/Time on BrightSign HD2000 only Writing Boot Script & Logo to RomUsing Your Own Boot Logo Linux Shell HD2000 onlyUsing Your Own Boot Script Widescreen vs x3 Discussion Supported Input DevicesDisplaying Videos Displaying ImagesHD600 Connectors Ports USB MiceHD2000 Connectors Ports
Related manuals
Manual 2 pages 57.54 Kb