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: 16918
Latest: Zegaror
New This Month: 12
New This Week: 1
New Today: 0
Stats
Total Posts: 135574
Total Topics: 17008
Most Online Today: 308
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 198
Total: 199

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

Macbook Pro M4 Red/Green Status Functionality On Controller Tab by allknowing2012
April 21, 2025, 07:01:13 PM

Mega tree guy lines by JonD
April 20, 2025, 10:06:56 AM

BBB SD Card max size? by megaxxl33@gmail.com
April 19, 2025, 09:36:11 PM

LYNX ZEUS 16/8/scc by edwinpeek
April 14, 2025, 05:54:16 PM

F16v5 Monitor tab not displaying any information by FireSlayer
April 10, 2025, 09:05:58 PM

LED Matrix by Dan01
April 10, 2025, 11:18:29 AM

Using FPP for synchronized video only by jnealand
April 06, 2025, 05:04:19 PM

COMMAND PRESETS - turn on off GPIO by yolomann
April 05, 2025, 08:32:05 PM

F48V5 test question by dustin2471
April 03, 2025, 03:17:45 PM

Debugging API calls? by darylc
April 02, 2025, 03:04:40 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod