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.
14 posts
• Page 2 of 2 • 1, 2
Re: Experimental Tick to "Bool" and Wireless multi send.
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 355 times
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Experimental Tick to "Bool" and Wireless multi send.
Actually, this is the code
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.
- 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: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Experimental Tick to "Bool" and Wireless multi send.
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.
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Experimental Tick to "Bool" and Wireless multi send.
Thanks ! Now i even get new option
Surprise how simple and useful is this in ruby !)
Surprise how simple and useful is this in ruby !)
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
14 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 65 guests