Jump to content
C4 Forums | Control4

Double tap and hold to dim/ramp with wrinkles


BubbaDuck

Recommended Posts

I feel dumb I haven't figured this out... yet here I am. I have a 6 button key pad and want to be able to double tap and hold to dim and then ramp up when held long enough and essentially endlessly cycle between dim and ramp up while being held. Of course at button release, stop at the current dim level.

Now, another wrinkle is these are not Control4 Centralized Dimming lights, so I have to play games with adding a set amount to the dim. The "top" button and "bottom" button work as toggles rather than dimmers with this particular driver. I figured start at the current dim value and subtract 20 until hitting zero then start to add 20 until 100 and continue the loop until released.

Any sane ideas on how to achieve this? I have lots of bad ideas I can find terrible holes in the logic.

Link to comment
Share on other sites


through a double tap nothing comes to mind. through bindings you can have it toggle the light so every-time you press it will toggle the light and if you press and hold it will dim or brighten.

Whats the intended use for the light you are controlling? Is it better to just have some set levels for the time of day?

All of control4 light behaves essential the same so that does not matter. If this a third party lighting device that is  an entirely different conversation.

This is something we will be covering in our composer home tutorial course as well. Can check out the topic on it here.

 

Link to comment
Share on other sites

I was afraid of that. I can’t seem to even get double tap and hold to do anything. I tried Button > when double tapped > while pressed > “bottom button” on a centralized dimmer - but it seems it doesn’t recognize the “while pressed” on anything but a “When pressed”.

Link to comment
Share on other sites

8 minutes ago, BubbaDuck said:

I was afraid of that. I can’t seem to even get double tap and hold to do anything. I tried Button > when double tapped > while pressed > “bottom button” on a centralized dimmer - but it seems it doesn’t recognize the “while pressed” on anything but a “When pressed”.

One way to do this would be to start a timer on double tap and stop the timer on button release.  When this timer starts, you would want to start another Timer, but a repeating timer this time.  You can use this repeating timer for your dim and increase logic.  When the first timer is stopped (or expires) you would want to stop the repeating timer... quite messy but it is possible.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...