Page 1 of 1

Help needed: Airlite & Cartwall

Posted: 19 Feb 2022 21:37
by dotinga00
So, spent several nice hours to discover how to set parameters in proppfexx to control the Led colours..

What i like to do is when pressing on button A1, Cartwall 1 is running, the Led turns red. When (only) this cartwall ends, the led has to go back to green..

I found out that when i program the GPIO client:
EXEC_COMMAND2 ${cw1cart1trackname}|NOT(Equals())|EXEC_SEND_DRAIRLITE_SETLED 1|2
the first Led turns green. So i did this for all 16 leds. Nice green start :-).

When i press the A1 button the GPIO client does :
CW1_PLAY_CART_1
EXEC_COMMAND2 ${cw1cart1trackname}|NOT(Equals())|EXEC_SEND_DRAIRLITE_SETLED 1|1
Works like a charm, PF plays the 1th cartwall, Led tuns green and the entry will be played. So far so good.

But i can't find a way to put only this entry back to green after it has finished... In PF itself, i go to the Events/commands, cartwall.
EXEC_COMMAND2 CW1_CART_ISPLAYING 1|Equals(1)|EXEC_SEND_DRAIRLITE_SETLED 1|2
Tried a lot but i can't solve this.....

regards,

Marcel

Re: Help needed: Airlite & Cartwall

Posted: 19 Feb 2022 22:32
by radio42
The are a couple of articles, which describe several solutions to exactly your issue.
Please see here:
https://www.proppfrexx.radio42.com/foru ... hp?p=14904

and here:
https://www.proppfrexx.radio42.com/foru ... php?t=2534

Let me know, if this helped you.