Jump to content

momentary shift button


Guest nomadicWhale
 Share

Recommended Posts

Guest nomadicWhale

Hi,

I have 4 buttons switching between 4 banks. pressing the buttons changes the bank to the corresponding bank.

I'd like to add a new feature. I'd like following logic:

if I press/release a button, the bank is changed. but if I press a button (without releasing it for say 300ms) the selected bank is effective only until I release it, in the mean time I can use this temporary bank. when I release the button, the previous bank is set back.

What I need is a way to measure the time from when the din was pressed till it was release. if this time is large enough, the old bank will be set again.

I hope this makes sense.

Thanks

nW

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...