News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15228
Latest: teedorowe@gmail.com
New This Month: 17
New This Week: 2
New Today: 0
Stats
Total Posts: 124490
Total Topics: 15143
Most Online Today: 58
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 3
Guests: 34
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

PiCap abnormal conditions: Disabling my IP address by Poporacer
Today at 11:34:07 AM

Just putting this out for research? by Poporacer
Today at 10:53:09 AM

FPP 6.0 Released! by Poporacer
Today at 07:49:44 AM

Chaining Two or more V2.01 Differential Receivers to a Kulp K16A-B cape by CaptainMurdoch
August 16, 2022, 03:21:41 PM

BBB Display by CaptainMurdoch
August 16, 2022, 03:02:07 PM

New to fpp. Having problems with multiuniverse string. by andmat
August 16, 2022, 02:16:56 PM

Matrix hang up solution by howdy10
August 16, 2022, 07:38:32 AM

Kulp f8 PB wifi by bloojoop
August 15, 2022, 10:38:55 PM

PiCap Slow DMX output? by bloojoop
August 15, 2022, 10:34:16 PM

Odd MultiSync behavior on FPP v6.0.2 by bloojoop
August 15, 2022, 05:38:43 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod