Greetings I am trying to create a simple combination of switches that have simple values to be additive/subtractive to create a set of values to be sent out to a controller via CC.
There are 3 buttons to be used, each has value to be sent out. These values are 1, 2, 4 .
BUTTON 1 = 1
BUTTON 2 = 2
BUTTON 3 = 4
What I need is if button 1 is pressed it sends out a value of 1.
If button 1 & 2 are pressed, their values combined send out a message of 3.
If all buttons are pressed, it sends a value of 7.
(note: I will also need these to work in reverse, that if these buttons are pressed again they should subtract their value from the sum and send out a new value.
I have attached what is the beginning of what I have started, but need some help finishing it because I do not know how to make the switches. Once I have learned this, I will attempt to make another one with values 0-7
Any help would be gratefully appreciated.