Skip to content

Buttons

project-owner edited this page Mar 19, 2023 · 10 revisions

Normally Open Push Buttons connected to the GPIO connector can control playback, volume and menu selection. 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.

Player Buttons

The player supports 13 playback 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
  13. Poweroff

The following image shows possible buttons connections:

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.player.buttons should be set to True when the playback 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 =
button.poweroff =

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

player-buttons

The buttons type can be:

  • GPIO - the GPIO UI section will be in use
  • I2C - the I2C UI section will be in use

Menu Buttons

The player supports 10 menu buttons. The buttons allow to select a specific menu item by pressing a particular hardware button.

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.menu.buttons should be set to True when the menu buttons are in use.

The following excerpt from the config.txt file shows menu buttons properties.

[gpio]
use.menu.buttons = True
...
button.menu.1 =
button.menu.2 =
button.menu.3 =
button.menu.4 =
button.menu.5 =
button.menu.6 =
button.menu.7 =
button.menu.8 =
button.menu.9 =
button.menu.10 =

The pin assignment can be also done through the Configuration Web UI:

menu-buttons

<<Previous | Next>>

Contents

Clone this wiki locally