News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16350
Latest: bweber
New This Month: 136
New This Week: 6
New Today: 0
Stats
Total Posts: 130893
Total Topics: 16202
Most Online Today: 78
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 35
Total: 37

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

Join Our Live Stream! by MikeKrebs
November 28, 2023, 10:44:16 PM

controller viewed only through fpp but not IP address by robledjl
November 28, 2023, 09:22:30 PM

AC lights on arches not working by MikeKrebs
November 28, 2023, 09:08:27 PM

Controller Not working by JonD
November 28, 2023, 08:48:59 PM

SRx2 Long Range Dual SmartReceiver by K-State Fan
November 28, 2023, 07:17:40 PM

Strange problem with model testing in fpp by mlevings
November 28, 2023, 07:02:05 PM

'could not create output type bbb48string' on Pi remote no pixels mp4 video only by jtrpop
November 28, 2023, 06:26:20 PM

F16v3 not in sync with 2 Kulp K8s by CaptainMurdoch
November 28, 2023, 04:35:39 PM

Smart Receiver B last port not responding by mikelu53
November 28, 2023, 03:42:32 PM

F48v4-NS Network Light Flashing, No connection by tbone321
November 28, 2023, 03:39:25 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod