Roku HD110 User Guide - Page 41

STATE, Controlling GPIO outputs from an interactive playlist, gpiosOn

Page 41 highlights

STATE After the EVENTS row, the interactive playlist may include one or more STATE rows. These rows begin with the keyword STATE. The first cell after the STATE keyword is the name of the video or image file to display, or audio file to play. When the state is entered, this file starts playing. The remaining cells describe what state to jump to when the corresponding event happens. For example, in the demo example, the first state is DEMO_MENU.BMP. While in this state, the main menu for the demo appears on the display. If the user presses the elo touch screen or clicks the mouse in the right spot to trigger the elo:110:180:350:400 event, then BrightSign jumps to the new state CARS.TS. Look at the STATE rows in the demo example; notice one of these rows starts with CARS.TS. It is also important to note that there can be only one state with a particular file. To understand this better, open the demo's AUTOPLAY.CSV file in Excel while playing the demo on your BrightSign. As you select options on your BrightSign, look at the interactive playlist to see how it tells your BrightSign what to do. You can then edit the autoplay interactive playlist in Excel and Save As... a CSV file to create your own applications. Controlling GPIO outputs from an interactive playlist To control GPIO output for a particular state, add a GPIO command to the second column of the state specification in the interactive playlist. The general syntax is: :(;;gpio_num) Enter the state name followed by a colon, then the gpio command, then a list of GPIO's separated by semicolons inside parentheses. For the HD2000, GPIO values must be between 17 and 22. For all other models, GPIO values must be between 0 and 7. GPIO value 0 or 17 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. 35 • •

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118

35
STATE
After the EVENTS row, the interactive playlist may include one or more STATE rows. These rows
begin with the keyword STATE. The first cell after the STATE keyword is the name of the video or
image file to display, or audio file to play. When the state is entered, this file starts playing. The
remaining cells describe what state to jump to when the corresponding event happens. For
example, in the demo example, the first state is DEMO_MENU.BMP. While in this state, the main
menu for the demo appears on the display. If the user presses the elo touch screen or clicks the
mouse in the right spot to trigger the elo:110:180:350:400 event, then BrightSign jumps to the
new state CARS.TS. Look at the STATE rows in the demo example; notice one of these rows starts
with CARS.TS. It is also important to note that there can be only one state with a particular file.
To understand this better, open the demo’s AUTOPLAY.CSV file in Excel while playing the demo
on your BrightSign. As you select options on your BrightSign, look at the interactive playlist to
see how it tells your BrightSign what to do. You can then edit the autoplay interactive playlist in
Excel and Save As… a CSV file to create your own applications.
Controlling GPIO outputs from an interactive playlist
To control GPIO output for a particular state, add a GPIO command to the second column of the
state specification in the interactive playlist.
The general syntax is:
<state name>:<gpio command>(<gpio_num>;<gpio_num>;gpio_num)
Enter the state name followed by a colon, then the gpio command, then a list of GPIO’s separated
by semicolons inside parentheses. For the HD2000, GPIO values must be between 17 and 22. For
all other models, GPIO values must be between 0 and 7. GPIO value 0 or 17 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.