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
Up/Down buttons velocity control?
3 posts
• Page 1 of 1
Up/Down buttons velocity control?
Does anyone have a good way of adding velocity control to up/down buttons?
I put together these up/down buttons with two digits of precision. However, if I press and hold to increment, it will take forever to get to a high value.
I put together these up/down buttons with two digits of precision. However, if I press and hold to increment, it will take forever to get to a high value.
- Attachments
-
- Up Down Buttons.fsm
- (1.36 KiB) Downloaded 813 times
-
Subquantum - Posts: 24
- Joined: Tue Mar 11, 2014 10:20 pm
- Location: USA
Re: Up/Down buttons velocity control?
Hi Sub, if you go inside the buttons ruby code and edit the "Button still held" part of the code (near the bottom of the code) and there you can adjust the speed of the auto incrementing, the part that says "time+0.05" make this a lower number for the auto incrementing to go up faster while the button is held down.
-
Loopeytunes - Posts: 57
- Joined: Tue Jul 13, 2010 11:07 am
- Location: Yorkshire, UK
Re: Up/Down buttons velocity control?
loopeytunes,
Thanks, that will help for one part of my application that goes from 0-30, but for another set of up/down buttons I have to go from 0-500 and if I speed it up I will loose the ability to set precise values on the way up or down.
What I need is for the speed to increase after holding the button for 2-3 seconds. The longer I hold it the faster it increases. I will look over the whole button code and see if I can add this feature to the code.
Any ideas would be greatly appreciated.
Thanks, that will help for one part of my application that goes from 0-30, but for another set of up/down buttons I have to go from 0-500 and if I speed it up I will loose the ability to set precise values on the way up or down.
What I need is for the speed to increase after holding the button for 2-3 seconds. The longer I hold it the faster it increases. I will look over the whole button code and see if I can add this feature to the code.
Any ideas would be greatly appreciated.
-
Subquantum - Posts: 24
- Joined: Tue Mar 11, 2014 10:20 pm
- Location: USA
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 24 guests