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: 17231
Latest: email@mattgreen.co.uk
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 137033
Total Topics: 17319
Most Online Today: 1788
Most Online Ever: 8375
(February 21, 2026, 03:58:04 AM)
Users Online
Members: 0
Guests: 1447
Total: 1447

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 5 Guests 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

FPP 9.3 Released! by lrhorer
February 25, 2026, 09:28:30 PM

P2.4 128X64 32S (ICND2153/TC7262) by darylc
February 24, 2026, 09:29:31 PM

Projector Controler by djmc2002
February 24, 2026, 05:30:55 PM

Trying to get lights working on one port, no luck by gthoman
February 23, 2026, 07:59:22 PM

FPP 9.5 by alman4511
February 16, 2026, 09:53:32 AM

F16V5 FW 37 Fan settings by jnealand
February 14, 2026, 07:48:45 AM

Issues with firmware update by 2Couyon
February 11, 2026, 04:45:33 PM

FPP won't connect with F16v3 by patdepri
February 11, 2026, 05:25:33 AM

LoRa plugin. Is it worth pursuing in 2026 by csmith
February 10, 2026, 09:57:30 AM

Explanation of ED (Extended Data) by dkulp
February 09, 2026, 05:58:08 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod