Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GPIO (General Purpose Input/Output) pins allow you to connect devices like buttons or sensors to your BrightSign player to control presentation content. They are unique because they can be configured as either inputs to read signals from external devices or outputs to send power to external devices. For example, they can be used to trigger video playback when a button that is connected to a GPIO pin is pressed, or to read temperature or light levels from sensors connected to GPIO pins to adjust content based on environmental conditions. 

...

In this example, we will associate GPIO ports 1, 2, and 3 with switches connected to the GPIO output of ports 4, 5, and 6. Then the presentation can play the videos associated with each port when the switch is set to On (and turn the videos off when the port is set to Off) and return the player to the Home content.

...

  1. Create a presentation with four videos, one main presentation and three secondary presentations (named “A”, “B”, and “C” in Image 1, above)

  2. Set GPIO pins 0-4 to Input and 4-7 to Output as shown in the image.

  3. Under the Events toolbar, select GPIO 0.

  4. Connect the GPIO 0 icon to the main content and then to the “A” content. Do the same to connect GPIO 1 to the main content and the “B” content, and GPIO 2 to the main content and “C” content.

  5. Select the “A”, “B”, and “C” content in the sandbox and connect the GPIO 3 icon to all of them and then to the main content.

  6. Select the main content. In the State Properties pane on the right, add a GPIO command and set the Command Parameters to On and 4. Do the same for GPIO ports 5 and 6 as shown in Image 2, below

  7. Now you need to set Set the Off command for the “A”, “B”, and “C” content. Select the “A” content and create GPIO commands as you did in the previous step, but now set the to Off.

  8. Finally, associate GPIO 3 with GPIO 7 - Why?

...