News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16873
Latest: jameman12
New This Month: 12
New This Week: 1
New Today: 1
Stats
Total Posts: 135403
Total Topics: 16970
Most Online Today: 139
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 67
Total: 68

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

Scoreboard Plugin by CaptainMurdoch
February 06, 2025, 04:34:30 PM

K32 only the pixels stopped outputting by tetleytealeaf
February 06, 2025, 02:03:40 PM

Power failure wreaked havoc by perigalacticon
February 05, 2025, 04:04:27 AM

What is the fanout capabilities of ws2811 controllers? by k6ccc
February 04, 2025, 05:53:10 PM

SPixels broken in version 6 and upwards by dkulp
February 04, 2025, 02:52:30 PM

FPP stopped working by crookedpriority
February 03, 2025, 10:45:17 AM

Setting up a wired on demand show on Pi/ FPP to push a show to Falcon Controller by breese
February 03, 2025, 04:54:44 AM

F16V4 Expansion Board Half of the board stop lighting up. by onlineshopper
February 03, 2025, 03:08:47 AM

Overlay Matrix: write more than one pixel at a time ? by niemy
February 02, 2025, 03:35:16 PM

FPP Spixels bug by Colg
January 31, 2025, 02:52:05 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod