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: 16534
Latest: theatretch85
New This Month: 22
New This Week: 7
New Today: 1
Stats
Total Posts: 133226
Total Topics: 16564
Most Online Today: 94
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 25
Total: 26

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

Pause (and manually resume) after each playlist item by Poporacer
Today at 09:41:40 AM

PWM for GPIO control by tbone321
Today at 09:32:33 AM

K2-Pi0 Unable to Start FPPD by JonD
Today at 03:14:49 AM

New K16s by tetleytealeaf
September 18, 2024, 10:04:29 PM

Can Falcon Player support WPA3? by JonD
September 18, 2024, 05:05:28 AM

Falcon PiCap v2 failed upon upgrade to FPP v8 by darylc
September 17, 2024, 10:00:13 PM

MIDI input from Apple Mainstage by jjung
September 17, 2024, 10:19:20 AM

So in Xlights what RGB in string settings do I use to get the colors correct by tbone321
September 17, 2024, 09:58:14 AM

FPP V8 Plugins Needing Testing by deanathpc
September 17, 2024, 08:54:45 AM

Varying Effects for Groups of Submodels by k6ccc
September 17, 2024, 07:40:04 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod