# Provides a few selected examples of GPIO configuration # Check out the documentation for many more configuration recipes # https://rpi-jukebox-rfid.readthedocs.io/en/latest/index.html pin_factory: type: rpigpio.RPiGPIOFactory input_devices: TogglePlayback: # A button to toggle music playback on single press type: Button kwargs: pin: 27 actions: on_press: alias: toggle SixActionBeast: # Two buttons encoding six different actions type: TwinButton kwargs: a: 22 b: 23 hold_repeat: true actions: on_short_press_a: alias: prev_song on_short_press_b: alias: next_song on_short_press_ab: alias: toggle on_long_press_a: alias: change_volume args: -3 on_long_press_b: alias: change_volume args: 3 on_long_press_ab: alias: toggle_output