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: 17213
Latest: derekjmiller12
New This Month: 12
New This Week: 8
New Today: 0
Stats
Total Posts: 136934
Total Topics: 17302
Most Online Today: 193
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 196
Total: 196

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

FPP 9.5-1 causing 192-168-8-1 for most WiFi IP by Sawdust
January 16, 2026, 03:39:52 PM

FPP driving P10 and also pixel outputs - several options by k6ccc
January 16, 2026, 03:23:49 PM

FPP MIDI plugin installed but wont trigger Playlist by MichaelGilley
January 13, 2026, 04:12:30 PM

SRx4 Long Range Quad SmartReceiver by tbone321
January 13, 2026, 03:32:30 PM

Pixel Port by LedMutt
January 13, 2026, 12:57:46 AM

Peace Stake material by LedMutt
January 12, 2026, 12:15:36 AM

Forbidden Error Port 80 by darylc
January 11, 2026, 10:24:48 PM

LoRa plugin. Is it worth pursuing in 2026 by k6ccc
January 11, 2026, 11:16:25 AM

Analog input by MikeKrebs
January 10, 2026, 10:28:19 PM

2025 Show Video by MikeKrebs
January 10, 2026, 10:20:00 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod