News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15305
Latest: PBAH89
New This Month: 8
New This Week: 6
New Today: 2
Stats
Total Posts: 125207
Total Topics: 15261
Most Online Today: 54
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 39
Total: 39

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

DIY voucher request by tfmacz
October 05, 2022, 11:51:31 PM

Pi Hat EEPROM by tfmacz
October 05, 2022, 10:11:44 PM

Sensor does not appear in status bar by JonD
October 05, 2022, 08:59:52 PM

Unable to reconnect to BBB after network config by Stoshx
October 05, 2022, 08:52:22 PM

For Sale - 1.0x 4-String Differential SmartReceiver Boards by JonD
October 05, 2022, 05:57:47 PM

New K4-PB wifi problems by ybjr38@yahoo.com
October 05, 2022, 05:19:28 PM

f4v2 and diff expansion board by JonD
October 05, 2022, 05:16:06 PM

Trigger media or playlist from incoming artnet/sACN by info@trans-mission.tv
October 05, 2022, 12:39:02 PM

FPP Advanced Features Key has been used. by tfmacz
October 05, 2022, 12:17:47 PM

Written documentation for Differential Receivers v2.01 by JonD
October 05, 2022, 09:04:50 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod