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:
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