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: 16876
Latest: Christmas_Man69
New This Month: 15
New This Week: 0
New Today: 0
Stats
Total Posts: 135414
Total Topics: 16973
Most Online Today: 84
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 40
Total: 40

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

stopping a playlist in fpp with pi gpio pins by darylc
February 15, 2025, 02:21:43 PM

xlights controller config by MikeKrebs
February 14, 2025, 09:35:16 PM

MQTT Disconnected issues in FPP-Using with Home Assistant,hope someone can help) by wtstreetglow
February 14, 2025, 08:03:32 AM

8.5.1 broke ffpd on restart after upgrade by MikeKrebs
February 12, 2025, 10:08:03 PM

K2-Pi-Servo by breese
February 11, 2025, 01:50:52 PM

K32 only the pixels stopped outputting by AAH
February 10, 2025, 11:45:33 PM

Scoreboard Plugin by CaptainMurdoch
February 06, 2025, 04:34:30 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

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod