Page 1 of 1

GPIO input

Posted: Sat Oct 21, 2023 1:48 am
by maxwell
When triggering a scene through GPIO it does not activate when the contact is made but after it is removed
example: momentary switch pressed down does nothing but when it is depressed it (sometimes) activates the scene - the sometimes is also a problem but activating it on button press is much more important

I thought this was a rasp pi issue but I realized the little joystick in the input section moves when the button is pressed down (so it is seeing it at the contact point)

help

thank you

Re: GPIO input

Posted: Sat Oct 21, 2023 9:28 am
by mcallegari
https://docs.qlcplus.org/v4/input-output/input-profiles

Have a look at "Generate an extra Press/Release when toggled"
Might be what you're looking for

Re: GPIO input

Posted: Sat Oct 21, 2023 8:37 pm
by maxwell
mcallegari wrote: Sat Oct 21, 2023 9:28 am https://docs.qlcplus.org/v4/input-output/input-profiles

Have a look at "Generate an extra Press/Release when toggled"
Might be what you're looking for
it still didn't activate on button press - I ended up figuring out a work around where I had the GPIO trigger a keystroke and had the input of the scene be trigged by the keystroke

the code I used was: (GPIO.17 triggering "A")
dtoverlay=gpio-key,gpio=17,active_low=1,gpio_pull=up,keycode=30

if this is helpful to anyone heres a list of the keys
https://github.com/torvalds/linux/blob/ ... nt-codes.h

my project is 100% now thank you so much for making this software!

Re: GPIO input

Posted: Mon Oct 23, 2023 11:46 am
by GGGss
ehmm... and what if you simply use a pull-down resistor instead of using the pull-up way of connecting... With this, you are inverting your input.