Replies: 2 comments 1 reply
-
Don't you mean normally closed? If they are NO, they should work out of the box, for NC, you should invert the input.
This is currently not supported out of the box, but you can easily change the comparison to Control-Surface/src/Selectors/ManyButtonsSelector.hpp Lines 26 to 36 in feee931 |
Beta Was this translation helpful? Give feedback.
-
Hello. I found that one of the digital pins was causing me a problem (45). I stopped using it and everything is ok. Thanks a lot for the help. |
Beta Was this translation helpful? Give feedback.
-
Hello. I need to send Program changes from 6 buttons. There are leds to each of them. I found an example of using "ManyButtonsSelectorLEDs ", but it turned out that my buttons are normally open. In another Issues (* 136) I saw that there is a similar problem and it is recommended to invert the buttons. Can it be done in my case and how? Thanks. This is the code:
ProgramChanger <4> programChanger {
{
MIDI_PC :: Acoustic_Grand_Piano, // list of programs
MIDI_PC :: Rock_Organ,
MIDI_PC :: Electric_Bass_Pick,
MIDI_PC :: Bright_Acoustic_Piano,
},
CHANNEL_1, // MIDI channel to use
};
ManyButtonsSelectorLEDs <4> programSelector = {
programChanger, // → selectable
{{45, 47, 49, 51}}, // → buttonPins
{{7, 8, 9, 10}}, // → ledPins
};
Beta Was this translation helpful? Give feedback.
All reactions