News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16349
Latest: bweber
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 131146
Total Topics: 16238
Most Online Today: 92
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 50
Total: 51

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 7.3 sound blaster issue by Chicken
Today at 02:54:41 AM

FPP 7.3.1 sending mixed colors? by CaptainMurdoch
Today at 12:43:22 AM

Falcon Player Network Setup by MikeKrebs
December 05, 2023, 09:37:37 PM

P5 Screen by LedMutt
December 05, 2023, 08:10:20 PM

Remote Falcon Plugin issue by Poporacer
December 05, 2023, 07:58:04 PM

Visualizer File by Poporacer
December 05, 2023, 05:17:00 PM

Color Order by Poporacer
December 05, 2023, 05:13:57 PM

Abnormal Condition Error by Poporacer
December 05, 2023, 04:27:34 PM

Channels not working by CeP
December 05, 2023, 06:44:21 AM

F8-B+ locking up BBB by CeP
December 05, 2023, 05:14:10 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod