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: 15225
Latest: robj2022
New This Month: 14
New This Week: 1
New Today: 1
Stats
Total Posts: 124445
Total Topics: 15136
Most Online Today: 51
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 35
Total: 36

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

Touchscreen by breese
Today at 07:06:58 AM

Powering Falcon PiCap for DMX use only by danielr
August 13, 2022, 11:24:40 PM

Tester or oscilloscope on the data line?? by johndobbs
August 13, 2022, 10:39:12 PM

F8-B Cap and GPIO Pins by dkulp
August 13, 2022, 11:47:45 AM

PiCap Slow DMX output? by robj2022
August 13, 2022, 11:42:27 AM

Historical knowledge needed - Falcon Differential Remotes by algerdes
August 12, 2022, 09:47:34 PM

Issues with e-mail by CaptainMurdoch
August 12, 2022, 09:42:57 PM

Programmatic interface to make interactive messages/signs on LED Panel with FPP? by CaptainMurdoch
August 12, 2022, 10:38:50 AM

FPP v6.0 on separate subnet by jnealand
August 12, 2022, 09:22:09 AM

BBB Display by TracyDockter
August 11, 2022, 05:18:12 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod