Page 1 of 1

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

Posted: Wed Feb 23, 2022 8:44 am
by heini22
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!

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

Posted: Wed Feb 23, 2022 10:16 am
by janosvitok

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

Posted: Wed Feb 23, 2022 11:05 am
by GGGss
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)

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

Posted: Wed Feb 23, 2022 12:22 pm
by heini22
@janosvitok
the API works like a dream :D

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