Skip to content

Buttons

project-owner edited this page Feb 17, 2020 · 10 revisions

Buttons connected to the GPIO connector can control a playback and volume. They can be used either instead of rotary encoders (RE) or together with RE. If buttons are used together with RE please make sure that you don't assign the same pin numbers to both.

The player supports 12 buttons with the following functionality:

  1. Move Left
  2. Move Right
  3. Move Up
  4. Move Down
  5. Select
  6. Volume Up
  7. Volume Down
  8. Mute
  9. Play/Pause
  10. Next
  11. Previous
  12. Home menu

The following image shows possible connection of the buttons:

buttons-1

The GPIO pin assignment for each button can be done either directly in the configuration file /home/pi/Peppy/config.txt or using the Configuration Web UI. The property use.buttons should be set to True when buttons are in use.

The following excerpt from the config.txt file shows pin assignment for the example shown above.

[gpio]
use.buttons = True
...
button.left =
button.right =
button.up =
button.down =
button.select =
button.volume.up = 17
button.volume.down = 27
button.mute =
button.play.pause = 22
button.next = 5
button.previous = 6
button.home =

The same pin assignment can be done through the Config Web UI:

buttons-2

<<Previous | Next>>

Contents

Clone this wiki locally