tttapa / MIDI_controller

This is a library for creating a MIDI controller using an Arduino or Teensy board.
GNU General Public License v3.0
403 stars 70 forks source link

Problem with DigitalCC #30

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, I cannot manage to install the DigitalCC class in order to use the switches as MIDI_CC controls. Is there a release of the MIDI_CONTROLLER library with this class already implemented? Or is there a tutorial that can explain me how to do this? Many thanks.

tttapa commented 6 years ago

Just create two new files (CTRL+SHIFT+N in the IDE): DigitalCC.h and DigitalCC.cpp. Then just paste the code from the wiki into the respective files.
Finally, include the new file by using #include "DigitalCC.h" into your main sketch. In this sketch, you can then instantiate DigitalCC objects.

ghost commented 6 years ago

Mamy thanks. And is the switch with this instruction?

ghost commented 6 years ago

*is the switch latched

tttapa commented 6 years ago

No, it's a normal momentary pushbutton.

ghost commented 6 years ago

Thank you so much