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. 

...

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

  2. Set In Presentation Settings > Interactive > Connectors, 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 video state and then to the “A” video state. Do the same to connect GPIO 1 to the main video state and the “B” video state, and GPIO 2 to the main video state and “C” video state.

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

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

  7. Select the “A” video state in the State Properties pane on the right, add GPIO commands for ports 4, 5, and 6, and set the Command Parameters to Off. Do the same for video states “B” and “C”.

  8. In the State Properties pane on the right, add a GPIO command and set the Command Parameters to On for GPIO port 7.

  9. Click on the GPIO icon under the “A” video state and add an Advanced Command to turn GPIO 7 to On (so the user can return to the home video by pressing that illuminated LED when the “A” video is playing). Do the same for the “B” and “C” video states.

...