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: 130864
Total Topics: 16199
Most Online Today: 67
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 6
Guests: 50
Total: 56

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

F16v3 not in sync with 2 Kulp K8s by marci
Today at 07:05:11 AM

AC lights on arches not working by jonmtme
Today at 05:31:46 AM

slights pb by K-State Fan
Today at 05:13:38 AM

2nd year newbie with same issues from last year by breese
Today at 04:26:35 AM

Join Our Live Stream! by PkPrince78
November 27, 2023, 10:41:20 PM

FPP Unresponsive by jem5136
November 27, 2023, 08:47:51 PM

F48v4-NS Network Light Flashing, No connection by tbone321
November 27, 2023, 08:24:35 PM

Upload output by jnealand
November 27, 2023, 07:13:47 PM

Can 7.3.5 run ETH0, ETH1, and Wifi? by dennismccreery
November 27, 2023, 07:08:14 PM

Red lights on strings by JonD
November 27, 2023, 04:44:46 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod