Most elegant want to implement inc/dec counter

1.03K viewsCSS Questions
0

What is the best way to implement an increment/decrement counter that can then be used in scripts? Can extensions be added to controller templates in any way?
eg
Button 1 is target
Ch = 1
CC = 01
Output range 1 to 4
Off value = 0
Behaviour = Wrap (could be ping pong)
RestoreLastState = False (first button press coming back doesnt auto inc ie return from other mode need to remember last state)
Direction = Up (should use arguments order ie 4 to 1 for decrement)

This could be used eg for mode selection etc from a single button. ie cycle modes.
Would be amazing if it could set a global variable too.

Any ideas?

admin Changed status to publish
Attached Files:
0

I’m not entirely sure what you’re trying to do there, but you can already cycle through modes using a single button.
Add a ‘mode selector’ mapping to each mode and set it to select the next mode in the loop. Then the last mode/mode selector should select the first mode.
Each mode selector just needs to be mapped to the same button on your controller.

admin Changed status to publish
Attached Files:
You are viewing 1 out of 2 answers, click here to view all answers.