News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16935
Latest: HangGlider
New This Month: 10
New This Week: 1
New Today: 1
Stats
Total Posts: 135621
Total Topics: 17021
Most Online Today: 102
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 32
Total: 33

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 V2 - newbie questions by allknowing2012
Today at 10:26:46 AM

possible interference: Solved by darylc
May 17, 2025, 10:28:48 PM

Newbie control panel build by jnealand
May 16, 2025, 09:54:18 AM

FPP Timezone/Sunset Inaccuracies by arl120384
May 15, 2025, 07:47:13 AM

How to use FPP with a defaut video? by encore
May 12, 2025, 08:10:36 AM

Could not contact signing website https://api.FalconPlayer.com by DrNeutron
May 10, 2025, 09:15:38 PM

Need Help on LEDvision, Colorlight card and P5 panels by emcee
May 10, 2025, 03:33:21 PM

FPP 8.5.1 on Pi 4B LAN and WAN UI access is odd by csmith
May 10, 2025, 02:43:29 PM

FPP 8.4 released! by dirknerkle
May 09, 2025, 08:26:22 PM

LED Single Panel Size Not Listed in Dropdown by breese
May 05, 2025, 04:05:31 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod