diff options
Diffstat (limited to 'shmotbox.ino')
-rw-r--r-- | shmotbox.ino | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/shmotbox.ino b/shmotbox.ino new file mode 100644 index 0000000..2b5bb44 --- /dev/null +++ b/shmotbox.ino @@ -0,0 +1,22 @@ +#include <Control_Surface.h> + +class CCPotentiometer14 : public MIDIFilteredAnalog<ContinuousCCSender14<10>> { + public: + CCPotentiometer14(pin_t analogPin, MIDIAddress address) + : MIDIFilteredAnalog(analogPin, address, {}) {} +}; + +USBMIDI_Interface midi; +CCPotentiometer14 pot {A0, MIDI_CC::General_Purpose_Controller_1}; + +void +setup() +{ + Control_Surface.begin(); +} + +void +loop() +{ + Control_Surface.loop(); +} |