Page 2 of 2

Re: Experimental Tick to "Bool" and Wireless multi send.

Posted: Thu Feb 09, 2023 2:34 pm
by Spogg
Just for fun, here’s a Ruby “Last” Radio push button system which you can easily expand as needed.

Re: Experimental Tick to "Bool" and Wireless multi send.

Posted: Thu Feb 09, 2023 2:55 pm
by tulamide
Actually, this is the code

Code: Select all

def event(i, v)
	output(0, v)
end
You don't need to check i with an if clause, because v always holds the value of the input that triggered the event method.

Re: Experimental Tick to "Bool" and Wireless multi send.

Posted: Thu Feb 09, 2023 4:06 pm
by Spogg
tulamide wrote: You don't need to check i with an if clause, because v always holds the value of the input that triggered the event method.
You know, I was sure you would do it better! ;)

I made that ages ago when I was trying to learn some Ruby. I’m not saying I would’ve done it belter now though. I’m still too old-fashioned in my thinking. :oops:

Re: Experimental Tick to "Bool" and Wireless multi send.

Posted: Fri Feb 10, 2023 2:06 pm
by Tepeix
Thanks ! Now i even get new option ;)
Surprise how simple and useful is this in ruby !)