News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15931
Latest: pavit66767
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 129790
Total Topics: 16011
Most Online Today: 153
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 5
Guests: 88
Total: 93

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

State of falcon pi cap? by gingrbredman
Today at 05:05:39 PM

FPP 7.2 Released! by dkulp
Today at 12:54:32 PM

PI cannot find my F48 by Poporacer
Today at 12:21:45 PM

Text on Matrix by Poporacer
Today at 11:35:04 AM

FPP OLED Display by Poporacer
October 03, 2023, 10:10:56 PM

Colorlight card not responding to FPP by Poporacer
October 03, 2023, 10:06:06 PM

Remote Player Audio Playback by tetleytealeaf
October 03, 2023, 08:56:29 PM

FPP Volume Set not scheduling by tetleytealeaf
October 03, 2023, 08:48:45 PM

Player on status page doesn't keep focus on top of the page by darylc
October 03, 2023, 08:00:15 PM

How to get deep purple color on pixels? by jchuchla
October 02, 2023, 09:29:03 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod