pimoroni / pirate-audio

Examples and documentation for the Pirate Audio range of Raspberry Pi add-ons
MIT License
248 stars 50 forks source link

[Feature request] Go 'previous' on long press bcm16 #96

Open joopdo opened 1 year ago

joopdo commented 1 year ago

Would it be possible to add functionality to pirate-audio as four buttons for music currently prevent going back one track, for long playlists, accidentally skipping the song you are looking for would mean that you would need to go around again.

bcm5 = play_pause,active_low,250
bcm6 = volume_down,active_low,250
bcm16 = next,active_low,250
bcm20 = volume_up,active_low,250
bcm24 = volume_up,active_low,250

Could it be possible to create an event for a 'long press'? So one click on bcm16 is next, and if you long press (say 3 sec) bcm16, it goes previous?