News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16522
Latest: MrLV83
New This Month: 10
New This Week: 2
New Today: 0
Stats
Total Posts: 133123
Total Topics: 16546
Most Online Today: 62
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 62
Total: 62

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

No data lights on smart receiver by glm441
Today at 12:37:03 AM

FPP 8.0 Released! by Santacarl
September 11, 2024, 10:24:19 PM

New K16s by tetleytealeaf
September 10, 2024, 08:36:29 PM

Setting up FPP and Xlights to talk to PCA9685 (Servos) by Poporacer
September 10, 2024, 05:21:56 PM

Can I control 12 volt WS2811 Pixels with the PI Hat. by tbone321
September 10, 2024, 04:06:04 PM

P5 Matrix on FPP 8.0 help by cmora111
September 10, 2024, 02:27:47 PM

Falcon srx1 psu problem by Vet4Christ
September 10, 2024, 04:34:56 AM

HELP - Panels Blown or PocketScroller messed up by DaSarge
September 09, 2024, 05:03:25 PM

Lights don't work on K16 by jnealand
September 09, 2024, 07:23:53 AM

LED Panel issue after upgrade to v8 by k6ccc
September 06, 2024, 05:54:33 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod