This pull request introduces a new feature for the Raspberry GPIO Frontend. It modifies the button event handling logic for Pin 16 as follows:
A short press (less than 2 seconds) on Pin 16 triggers the handle_next function.
A long press (2 seconds or more) on Pin 16 triggers the handle_prev function.
This logic ensures that only one event is triggered based on the duration of the button press, preventing multiple events from disturbing the playlist.
Changes Made
Modified the gpio_event method to handle button press duration for Pin 16.
Implemented logic to trigger handle_next for short presses and handle_prev for long presses on Pin 16.
Important! Make sure Mopidy or mpc has repeat off, otherwise you don't go previous but to start of song.
This pull request introduces a new feature for the Raspberry GPIO Frontend. It modifies the button event handling logic for Pin 16 as follows:
This logic ensures that only one event is triggered based on the duration of the button press, preventing multiple events from disturbing the playlist.
Changes Made
Important! Make sure Mopidy or mpc has repeat off, otherwise you don't go previous but to start of song.