More Inputs! 😉 (script editor?, python?, gpio?)

All the topics related to QLC+ on the Raspberry Pi
Post Reply
heini22
Posts: 2
Joined: Wed Feb 23, 2022 8:13 am
Real Name: Maximilian

For a small project I need around 25 Inputs. Sadly I can get only around 17 GPIO Pins to work as an input.

Is there a way to trigger some actions via Python?
Or maybe there is a way to use the intern script editor from QLC.
For example:
If a file A exists in the home directory start Sequence A
Or
If the content of a file is B start sequence B
OR
If a python script sends a message starts sequence C

Im verry happy about every possible solution! Thanks!
janosvitok
Posts: 1274
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

User avatar
GGGss
Posts: 2732
Joined: Mon Sep 12, 2016 7:15 pm
Location: Belgium
Real Name: Fredje Gallon

Or ... you could use OSC commands from within your script.
If your inputs are hardware bases, a demux hat can provide you much more inputs than the standard GPIO interface.
(keep in mind that you always need a double edge of the signal. Rising edge = input on, falling edge doesn't do anything, next rising edge = input off; next rising edge = input on)
All electric machines work on smoke... when the smoke escapes... they don't work anymore
heini22
Posts: 2
Joined: Wed Feb 23, 2022 8:13 am
Real Name: Maximilian

@janosvitok
the API works like a dream :D

@GGGss
that also sounds like a great solution. Thanks!
Post Reply