Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Experimental Tick to "Bool" and Wireless multi send.

For general discussion related FlowStone

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

Postby Spogg » Thu Feb 09, 2023 2:34 pm

Just for fun, here’s a Ruby “Last” Radio push button system which you can easily expand as needed.
Attachments
Ruby Radio buttons .fsm
FS 3.06
(690 Bytes) Downloaded 210 times
User avatar
Spogg
 
Posts: 3327
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

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

Postby tulamide » Thu Feb 09, 2023 2:55 pm

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.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2688
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

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

Postby Spogg » Thu Feb 09, 2023 4:06 pm

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:
User avatar
Spogg
 
Posts: 3327
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

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

Postby Tepeix » Fri Feb 10, 2023 2:06 pm

Thanks ! Now i even get new option ;)
Surprise how simple and useful is this in ruby !)
Tepeix
 
Posts: 355
Joined: Sat Oct 16, 2021 3:11 pm

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 33 guests