News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15526
Latest: stooge
New This Month: 34
New This Week: 22
New Today: 0
Stats
Total Posts: 127420
Total Topics: 15642
Most Online Today: 111
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 4
Guests: 45
Total: 49

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

FPP Connect Limiting Uploads to 16V4 by drpiotro
Today at 06:28:01 PM

Falcon V4 Player by drpiotro
Today at 05:29:09 PM

f16v4 wont play in Player or Master Mode by Poporacer
Today at 05:07:37 PM

FPP 6.2 ColorLight Issues by dennismccreery
Today at 05:06:39 PM

snmpd interference with FPP by Setarcos
Today at 03:55:29 PM

FPP v6.2 Beaglebone Black/Green WiFi at startup by egenoup
Today at 03:46:11 PM

I can't get FPP to work with F16v4 by aquinones3
Today at 03:08:26 PM

K8-PB does not recognize SB Play 3 by Poporacer
Today at 01:58:46 PM

K40D-PB by dkulp
Today at 01:04:36 PM

Text inverted by dreiman
Today at 12:44:05 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod