Jump to content

momentary shift button


Recommended Posts

Guest nomadicWhale
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...