News:

LATEST RELEASE:  FPP 9.5 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/9.5

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 17267
Latest: Fernker
New This Month: 6
New This Week: 0
New Today: 0
Stats
Total Posts: 137229
Total Topics: 17367
Most Online Today: 583
Most Online Ever: 8375
(February 21, 2026, 03:58:04 AM)
Users Online
Members: 0
Guests: 102
Total: 102

Better single button control. Start, stop & next song

Started by dreiman, November 08, 2019, 09:52:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dreiman

I have been playing and I have improved my single button control script.  You can do 3 things with 1 button. 

Quick press to start a specified playlist.
Quick press to skip to the next song.
Long press to stop the playlist.

This is all done with one button. 

You hook up your button or switch in the usual way following the schematic which can be found in the help section on the GPIO input page.

Upload both Pressed.sh and Release.sh.

Create an even for each. Name them what you want, but I make the name of the events the same as the file name without .sh.

Under GPIO inputs, on the pin that you will be connecting your switch output to, enable it, and for falling, set it to Pressed, and set rising to Released.

Restart FPPD.

Connect switch.

ENJOY!!

Support FPP

+- Recent Topics

Web Server Locks Up Repeatedly on Pi Zero 2 W by Fernker
July 16, 2026, 05:15:40 PM

FPP as Home Assistant Add-On by jessica12ryan
July 12, 2026, 02:39:51 PM

Control ANY Home Assistant Device From FPP or xLights Sequences by jessica12ryan
July 12, 2026, 11:13:29 AM

Simpleshow for xLights by sonic777
July 12, 2026, 07:00:12 AM

FPP install script on Ubuntu, no video by jessica12ryan
July 08, 2026, 06:44:26 PM

No Imagine on Digital Sign by MSHutchins
July 06, 2026, 03:41:30 PM

Manage Multiple Pi Players - Phone or Web by keithmarx
July 06, 2026, 08:29:49 AM

Helping a brother in time of need. by David Pitts
July 05, 2026, 09:15:27 PM

Skulltronix in xlights by Scaregroundspdx
July 03, 2026, 02:24:11 PM

Another StaticOn.sh Question by richardln2
July 03, 2026, 02:13:42 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod